Comments (3)
Hi.
The feature looks good, however we have the MySQL driver but we don't have separated MariaDB driver.
If we want to add DBMS-specific feature then we have to add the driver.
Then I suppose we need to add constraint field in the Schema Builder. And then we can implement the attribute.
I'm afraid I don't have enough time for this task.
Would you like to do this?
from annotated.
Hi,
Mysql driver will suffice, as the mariadb maintains major compatibility with mysql.
However, I am not sure about some other rdbms and its support for the check constraint. I think we should throw a NotSupported exception in cases where the functionality is not available on the db level.
I can try to implement it, I but cannot guarantee any timeline as I dont have much spare time right now.
from annotated.
NotSupported exception
We don't need to throw an exception there because the same schema might be used on different databases (tests: sqlite, prod: mysql). Just subscribe supported DBMS in the docblock of the attribute.
However, I am not sure about some other rdbms and its support for the check constraint
That issue might be useful even though it was 3 years ago.
but cannot guarantee any timeline
Don't worry about it 👌
from annotated.
Related Issues (20)
- Possible ManyToMany typo? HOT 2
- Duplicate namespaces in resources/stubs HOT 11
- Adding an index to a JTI table
- 💡 define a embeddable object prefix in the Embedded relation
- Select query with polymorphic relationship does not work HOT 1
- Child entities are not added to registry when using attributes🐛 HOT 1
- Primary Keys are resolving to arrays even when they're not, which makes select->count() not work properly🐛
- It would be nice to be able to define charsets for columns like this: HOT 5
- 🔍 Check compatibility with doctrine/annotations 2.0
- 💡 Remove doctrine/annotations dependency
- 💡 Up PHP min version to 8.1
- JTI parent has children fields
- 💡 Add the ability to map column to property without declaring it in migration
- Update readme.md
- 💡 Attribute #[ForeignKey]
- [Bug]: HasOne overrides nullability of BelongsTo HOT 5
- Virtual generated column💡 HOT 1
- [Bug]: Columns declared in non-entity classes are ignored 🐛
- Migration generator not add precision and scale params for decimal column type in Embeddable class 🐛 HOT 3
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 annotated.