You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readmes/sqlspec.md
+37-18Lines changed: 37 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ SQLSpec is an experimental Python library designed to streamline and modernize y
14
14
-**Emphasis on RAW SQL and Minimal Abstractions**: SQLSpec is a library for working with SQL in Python. Its goals are to offer minimal abstractions between the user and the database. It does not aim to be an ORM library.
15
15
-**Type-Safe Queries**: Quickly map SQL queries to typed objects using libraries such as Pydantic, Msgspec, Attrs, etc.
16
16
-**Extensible Design**: Easily add support for new database dialects or extend existing functionality to meet your specific needs. Easily add support for async and sync database drivers.
17
-
-**Minimal Dependencies**: SQLSpec is designed to be lightweight and can run on its own or with other libraries such as `litestar`, `fastapi`, `flask`and more. (Contributions welcome!)
17
+
-**Framework Extensions**: First-class integrations for Litestar, Starlette, and FastAPI with automatic transaction handling and lifecycle management
18
18
-**Support for Async and Sync Database Drivers**: SQLSpec supports both async and sync database drivers, allowing you to choose the style that best fits your application.
19
19
20
20
### Experimental Features (API will change rapidly)
@@ -303,27 +303,51 @@ SQLSpec includes a built-in migration system for managing schema changes. After
303
303
304
304
```bash
305
305
# Initialize migration directory
306
-
sqlspec db init migrations
306
+
sqlspec --config myapp.config init
307
307
308
308
# Generate new migration file
309
-
sqlspec db make-migrations"Add user table"
309
+
sqlspec --config myapp.config create-migration -m"Add user table"
0 commit comments