┌────────────────────────────┐ │BaseBuilder │ ├────────────────────────────┤ │#$db : ConnectionInterface │ │string : compileFinalQuery()│ └────────────────────────────┘ ┌────────────────────────────────────┐ ┌───────────────────────────────┐ │PreparedQueryInterface │ │ConnectionInterface │ ├────────────────────────────────────┤ ├───────────────────────────────┤ │prepare(string $sql, array $options)│ │BaseBuilder : table($tableName)│ │execute(...$data) │ │query(string $sql, $binds) │ └────────────────────────────────────┘ └───────────────────────────────┘ ┌────────────────────────────────────────────────────────┐ │BasePreparedQuery │ ┌───────────────────────────────┐ ┌────────────────────┐ ├────────────────────────────────────────────────────────┤ │BaseConnection │ │QueryInterface │ │#$query : Query │ ├───────────────────────────────┤ ├────────────────────┤ │#$db : BaseConnection │ │#$lastQuery │ │bool : isWriteType()│ │prepare(string $sql, array $options, string $queryClass)│ │query(string $sql, $binds, ...)│ └────────────────────┘ │execute(...$data) │ │#execute(string $sql) │ └────────────────────────────────────────────────────────┘ └───────────────────────────────┘ | | | ┌────────────────────┐ ┌────────────────────┐ │Query │ │SQLite3\Connection │ ├────────────────────┤ ├────────────────────┤ │bool : isWriteType()│ │bool : isWriteType()│ └────────────────────┘ │execute(string $sql)│ | └────────────────────┘ | ┌────────────────────┐ ┌────────────────────────┐ │Postgre\Query │ │This is just an example.│ ├────────────────────┤---├────────────────────────┤ │bool : isWriteType()│ │ │ └────────────────────┘ └────────────────────────┘