Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
jph00 committed May 27, 2024
1 parent b9d0bd8 commit c5289d9
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
*.bak
conda/
*.sqlite
*.db
_proc/
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

<!-- do not remove -->

## 1.0.1

- Correct version number


## 0.0.1

- Init pypi/conda release; v2 support
Expand Down
2 changes: 1 addition & 1 deletion fastsql/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = "0.0.2"
__version__ = "1.0.1"
from .core import *

2 changes: 1 addition & 1 deletion fastsql/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def get(self:Table, where=None, limit=None):
"Select from table, optionally limited by `where` and `limit` clauses"
return self.metadata.conn.sql(self.select().where(where).limit(limit))

# %% ../nbs/00_core.ipynb 15
# %% ../nbs/00_core.ipynb 17
@patch
def close(self:MetaData):
"Close the connection"
Expand Down
31 changes: 30 additions & 1 deletion nbs/00_core.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "b351d1b2",
"id": "cb6461fb",
"metadata": {},
"outputs": [
{
Expand All @@ -257,6 +257,35 @@
"a.get(a.c.Title.startswith('F'), limit=5)"
]
},
{
"cell_type": "markdown",
"id": "9a3153b9",
"metadata": {},
"source": [
"This is the query that will run behind the scenes:"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "6f4caf6c",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"SELECT \"Album\".\"AlbumId\", \"Album\".\"Title\", \"Album\".\"ArtistId\" \n",
"FROM \"Album\" \n",
"WHERE (\"Album\".\"Title\" LIKE :Title_1 || '%')\n",
" LIMIT :param_1\n"
]
}
],
"source": [
"print(a.select().where(a.c.Title.startswith('F')).limit(5))"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
29 changes: 29 additions & 0 deletions nbs/index.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,35 @@
"a.get(a.c.Title.startswith('F'), limit=5)"
]
},
{
"cell_type": "markdown",
"id": "9a3153b9",
"metadata": {},
"source": [
"This is the query that ran behind the scenes:"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "6f4caf6c",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"SELECT \"Album\".\"AlbumId\", \"Album\".\"Title\", \"Album\".\"ArtistId\" \n",
"FROM \"Album\" \n",
"WHERE (\"Album\".\"Title\" LIKE :Title_1 || '%')\n",
" LIMIT :param_1\n"
]
}
],
"source": [
"print(a.select().where(a.c.Title.startswith('F')).limit(5))"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
2 changes: 1 addition & 1 deletion settings.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[DEFAULT]
repo = fastsql
lib_name = fastsql
version = 0.0.2
version = 1.0.1
min_python = 3.9
license = apache2
black_formatting = False
Expand Down

0 comments on commit c5289d9

Please sign in to comment.