Comments (3)
I made a mistake. There is a solution, just like for array
type. In another DBMS, use json
type for the field and convert data to json
when transferring them from PostgreSQL. For array
and composite
types it is to_json()
.
PHP code does not need to be changed.
In PHP it will be associative array with strict structure and can be used to build an object.
For example $price = new Money($pricePhpType);
from db-pgsql.
But it is not possible to transfer data to another DBMS without changing PHP code.
That's very bad sign for db abstraction feature.
from db-pgsql.
Then it makes sense.
from db-pgsql.
Related Issues (18)
- How to after release HOT 1
- update links
- Dependabot can't resolve your PHP dependency files
- Make `ArrayParser` internal and prevent multiple create instance of it HOT 21
- Add test for negative default values and parentheses
- Use stable version of `yiisoft/db` in CI
- Schema not loading with `PDO::ATTR_STRINGIFY_FETCHES => true`
- Prevent auto increment of primary key on duplicate values when `upsert()` HOT 3
- Wrong SQL with not unique index type HOT 2
- Add ability to alter column type without changing default value and null-state
- Upsert commands always builds a INSERT statemant for PostgreSQL Updatable Views HOT 4
- Add support for USING clause for alterColumn
- Trim git history
- Invalid index columns order
- Dependabot can't resolve your PHP dependency files
- May be need add compatible result for phptypes? HOT 1
- Wrong type for serial in migration
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from db-pgsql.