database
database copied to clipboard
Database Abstraction Layer, Schema Introspection, Schema Generation, Query Builders
https://github.com/spiral/database/blob/632488c5f7dfd3d4dc47edc9f1c2c992724e7526/src/Driver/Driver.php#L659 I have the issue of inserting datetime in the following format `Y-m-d H:i:s.u `- `u` - dosent insert. How can I insert my format to DB in another way?
Hello, could you help me to define a column with ON UPDATE CURRENT_TIMESTAMP attribute? Screen: https://prnt.sc/1r9lisg
When creating an ActiveQuery without a prefix (which is possible since the prefix property is nullable), the `sqlStatement` method fails since it passes the prefix property to `$this->driver->getQueryCompiler()->compile` which expects...
SQL Driver version 5.9 supports version 11+. SQL server 2012 is version 11 https://docs.microsoft.com/en-us/sql/connect/php/microsoft-php-drivers-for-sql-server-support-matrix?view=sql-server-ver15
It'd be great if we could use `db` or `database` (or any other name) as argument names if there is only one database declared. Currently you have to use default...
Greetings, This incorporates mysql datetime precision. Need help cleaning this up for other database drivers if necessary. Not sure why formatDatetime was doing what it was doing instead of just...
## Интро В long-running приложениях (асинхронных/многопоточных/многопоточно-асинхронных) часто применяется подход пулинга соединений (ConnectionPool). К БД открывается N соединений и пока приложение дожидается результатов от БД, оно может начать выполнять параллельно другие...
### What steps will reproduce the problem? Install cycle/orm and cycle/migrations Now cycle not full support json type for mysql, because it automatically convert json to text https://github.com/spiral/database/blob/master/src/Driver/MySQL/Schema/MySQLColumn.php#L88 Example of...