-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding SQL Server support #552
base: sqlserver
Are you sure you want to change the base?
Conversation
# New features * f-strings support in queries: select(f'{s.name} - {s.age}' for s in Student) * ponyorm#344: It is now possible to specify offset without limit: `query.limit(offset=10)` * ponyorm#371: Support of explicit casting of JSON expressions to `str`, `int` or `float` * `@db.on_connect` decorator added # Bugfixes * Fix bulk delete bug introduced in 0.7.4 * ponyorm#370 Fix memory leak introduced in 0.7.4 * Now exists() in query does not throw away condition in generator expression: `exists(s.gpa > 3 for s in Student)` * ponyorm#373: 0.7.4/0.7.5 breaks queries using the `in` operator to test membership of another query result * ponyorm#374: `auto=True` can be used with all PrimaryKey types, not only int * ponyorm#369: Make QueryResult looks like a list object again: add concatenation with lists, `.shuffle()` and `.to_list()` methods * ponyorm#355: Fix binary primary keys `PrimaryKey(buffer)` in Python2 * Interactive mode support for PyCharm console * Fix wrong table aliases in complex queries * Fix query optimization code for complex queries
# Features since 0.7.5: * f-strings support in queries: `select(f'{s.name} - {s.age}' for s in Student)` * ponyorm#344: It is now possible to specify offset without limit: `query.limit(offset=10)` * ponyorm#371: Support of explicit casting of JSON expressions to `str`, `int` or `float` * `@db.on_connect` decorator added # Bugfixes * Fix bulk delete bug introduced in 0.7.4 * ponyorm#370 Fix memory leak introduced in 0.7.4 * Now `exists()` in query does not throw away condition in generator expression: `exists(s.gpa > 3 for s in Student)` * ponyorm#373: 0.7.4/0.7.5 breaks queries using the `in` operator to test membership of another query result * ponyorm#374: `auto=True` can be used with all PrimaryKey types, not only `int` * ponyorm#369: Make QueryResult looks like a list object again: add concatenation with lists, `.shuffle()` and `.to_list()` methods * ponyorm#355: Fix binary primary keys `PrimaryKey(buffer)` in Python2 * Interactive mode support for PyCharm console * Fix wrong table aliases in complex queries * Fix query optimization code for complex queries * Fix a bug with hybrid properties that use external functions
# Features * CockroachDB support added * CI testing for SQLite, PostgreSQL & CockroachDB # Bugfixes * Fix translation of getting array items with negative indexes * Fix string getitem translation for slices and negative indexes * PostgreSQL DISTINCT bug fixed for queries with ORDER BY clause * Fix date difference syntax in PostgreSQL * Fix casting json to dobule in PostgreSQL * Fix count by several columns in PostgreSQL * Fix PostgreSQL MIN and MAX expressions on boolean columns * Fix determination of interactive mode in PyCharm * Fix column definition when `sql_default` is specified: DEFAULT should be before NOT NULL * Relax checks on updating in-memory cache indexes (don't throw CacheIndexError on valid cases) * Fix deduplication logic for attribute values
This release does not contains new features or bugfixes. Its goal is to test automatic release building and uploading
Basic JSON has also been implemented.
added bool fix
…etc, not yet tested
Fixed py datetime to sql datetime string conversion
…adding the possibility of returning None id after insert
@sostholm I would love to re-introduce this PR however it has a wide range of changes to PonyORM, many of which are not related to MS SQL Server. #545 (now closed) seemed to be much "tighter" with just a single addition of |
Working SQL Server CRUD, running model1.py test works.
Basic JSON has also been implemented.
Only works with pyodbc.
Based on mysql and postgres providers.