* Run a select statement and return a single result. $ this, $ this-> getQueryGrammar(), $ this-> getPostProcessor() Return $ this-> query()-> from( $table, $as) Public function table( $table, $as = null) * \Closure|\Illuminate\Database\Query\Builder|string $table * Begin a fluent query against a database table. * Get a schema builder instance for the connection. Protected function getDefaultPostProcessor() * \Illuminate\Database\Query\Processors\Processor * Get the default post processor instance. $ this-> postProcessor = $ this-> getDefaultPostProcessor() Public function useDefaultPostProcessor() * Set the query post processor to the default implementation. Protected function getDefaultSchemaGrammar() * \Illuminate\Database\Schema\Grammars\Grammar * Get the default schema grammar instance. $ this-> schemaGrammar = $ this-> getDefaultSchemaGrammar() Public function useDefaultSchemaGrammar() * Set the schema grammar to the default implementation. Protected function getDefaultQueryGrammar() * \Illuminate\Database\Query\Grammars\Grammar * Get the default query grammar instance. $ this-> queryGrammar = $ this-> getDefaultQueryGrammar() * Set the query grammar to the default implementation. so we initialize these to their default values while starting. which are both very important parts of the database abstractions We need to initialize a query grammar and the query post processors type commands are run such as checking whether a table exists. name we are connected to since it is needed when some reflective First we will setup the default properties. Illuminate\Database Module Connection Class ConnectionInterface Implementation pdo Field readPdo Field database Field tablePrefix Field config Field reconnector Field queryGrammar Field schemaGrammar Field postProcessor Field events Field fetchMode Field transactions Field recordsModified Field queryLog Field loggingQueries Field pretending Field doctrineConnection Field resolvers Field _construct Method useDefaultQueryGrammar Method getDefaultQueryGrammar Method useDefaultSchemaGrammar Method getDefaultSchemaGrammar Method useDefaultPostProcessor Method getDefaultPostProcessor Method getSchemaBuilder Method table Method query Method selectOne Method selectFromWriteConnection Method select Method cursor Method prepared Method getPdoForSelect Method insert Method update Method delete Method statement Method affectingStatement Method unprepared Method pretend Method withFreshQueryLog Method bindValues Method prepareBindings Method run Method runQuerċallback Method logQuery Method getElapsedTime Method handleQueryException Method tryAgainIfCausedByLostConnection Method reconnect Method reconnectIfMissingConnection Method disconnect Method listen Method fireConnectionEvent Method event Method raw Method recordsHaveBeenModified Method isDoctrineAvailable Method getDoctrineColumn Method getDoctrineSchemaManager Method getDoctrineConnection Method getPdo Method getRawPdo Method getReadPdo Method getRawReadPdo Method setPdo Method setReadPdo Method setReconnector Method getName Method getConfig Method getDriverName Method getQueryGrammar Method setQueryGrammar Method getSchemaGrammar Method setSchemaGrammar Method getPostProcessor Method setPostProcessor Method getEventDispatcher Method setEventDispatcher Method unsetEventDispatcher Method pretending Method getQueryLog Method flushQueryLog Method enableQueryLog Method disableQueryLog Method logging Method getDatabaseName Method setDatabaseName Method getTablePrefix Method setTablePrefix Method withTablePrefix Method resolverFor Method getResolver Method
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |