Commit 7ee6ed8
committed
feat: implement dialect-specific DDL query builders
- Add dialect-specific DDL query builders for MySQL, PostgreSQL, MSSQL, SQLite, and MariaDB
- Implement MySQL-specific types: enum, set, tinyInteger, mediumInteger, tinyText, mediumText, longText, binary, varbinary, blob types, geometry types, year
- Implement PostgreSQL-specific types: uuid, jsonb, serial, bigSerial, inet, cidr, macaddr, tsvector, tsquery, bytea, money, interval, array types, geometric types
- Implement MSSQL-specific types: uniqueidentifier, nvarchar, nchar, ntext, money, smallMoney, datetime2, smallDatetime, datetimeOffset, time, binary, varbinary, image, real, xml, geography, geometry, hierarchyid, sqlVariant
- Implement SQLite-specific type mappings for all column types
- Replace deprecated NTEXT with NVARCHAR(MAX) in MSSQL dialect for better compatibility
- Override string() and text() methods in MSSQL to use NVARCHAR for Unicode support
- Add DialectInterface::getDdlQueryBuilder() method
- Update PdoDb::schema() to return dialect-specific builder
- Add comprehensive tests for each dialect's specific types
- Add migration test to verify dialect-specific builders are used
- Add example demonstrating dialect-specific types with proper MSSQL binary data handling using CONVERT
- Update documentation with dialect-specific schema guide
- Update README files with new functionality1 parent 72f1b45 commit 7ee6ed8
File tree
25 files changed
+3018
-7
lines changed- documentation
- 05-advanced-features
- examples
- 11-schema
- src
- dialects
- mariadb
- mssql
- mysql
- postgresql
- sqlite
- query/traits
- tests
- mariadb
- mssql
- mysql
- postgresql
- sqlite
25 files changed
+3018
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
| 236 | + | |
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
| 345 | + | |
345 | 346 | | |
346 | 347 | | |
347 | 348 | | |
348 | 349 | | |
349 | 350 | | |
350 | 351 | | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
351 | 365 | | |
352 | 366 | | |
353 | 367 | | |
| |||
0 commit comments