Skip to content
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

Open
wants to merge 699 commits into
base: sqlserver
Choose a base branch
from
Open

Conversation

sostholm
Copy link

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.

sashaaero and others added 30 commits August 5, 2018 13:02
# 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
sashaaero and others added 25 commits February 4, 2020 18:34
# 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.
Fixed py datetime to sql datetime string conversion
…adding the possibility of returning None id after insert
@sostholm sostholm changed the title Working SQL Server CRUD, running model1.py test works. Adding SQL Server support May 22, 2021
@ianstokesrees-gamma
Copy link

@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 pony/orm/dbproviders/mssql.py. However I am also noting that MS SQL Server now uses pyodbc as the recommended package for building connections. Can you provide your thoughts on what I'd need to do to bring your work up to date with the current PonyORM?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet