schemaGrammar)) { $this->useDefaultSchemaGrammar(); } return new MySqlBuilder($this); } /** * Bind values to their parameters in the given statement. */ public function bindValues(PDOStatement $statement, array $bindings): void { foreach ($bindings as $key => $value) { $statement->bindValue( is_string($key) ? $key : $key + 1, $value ); } } /** * Get the default query grammar instance. */ protected function getDefaultQueryGrammar(): QueryGrammar { return $this->withTablePrefix(new QueryGrammar()); } /** * Get the default schema grammar instance. */ protected function getDefaultSchemaGrammar(): SchemaGrammar { return $this->withTablePrefix(new SchemaGrammar()); } /** * Get the default post processor instance. */ protected function getDefaultPostProcessor(): MySqlProcessor { return new MySqlProcessor(); } /** * Get the Doctrine DBAL driver. * * @return Driver */ protected function getDoctrineDriver() { return new MySqlDriver(); } }