Skip to content

Commit

Permalink
v0.3.0
Browse files Browse the repository at this point in the history
- finished tests for postgresqlx
- tests structure changed
- minor bugfix
  • Loading branch information
v1a0 committed Apr 2, 2022
1 parent 6c9c9c3 commit 16f01f1
Show file tree
Hide file tree
Showing 11 changed files with 1,629 additions and 2,042 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<img src="./pics/sqllex-logo.svg" width="300px" alt="sqllex logo">

# SQLLEX ORM v0.2.3
# SQLLEX ORM v0.3.0

![python-auto-ver]
[![lgtm-quality-img]][lgtm-quality-src]
Expand Down
2 changes: 1 addition & 1 deletion sqllex/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# "\033[0m"
# "\n")

__version__ = '0.3.0b3'
__version__ = '0.3.0'

__all__ = [
# classes
Expand Down
4 changes: 2 additions & 2 deletions sqllex/core/entities/abc/script_gens.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def insert(script: str, table: str, columns: tuple, placeholder='?'):
return f"" \
f"{script} " \
f'INTO "{str(table)}" (' \
f"{', '.join(col for col in columns)}) " \
f""""{'", "'.join(col for col in columns)}") """ \
f"VALUES (" \
f"{', '.join((placeholder for _ in range(len(columns))))})"

Expand All @@ -41,7 +41,7 @@ def update_script(table: str, script: str):
def select(method: str, columns: tuple, table: str = None):
return f"" \
f"{method} "\
f"{', '.join(str(col) for col in columns)} "\
f"""{', '.join(str(col) for col in columns)} """\
f'FROM "{str(table)}" '


Expand Down
Empty file added tests/__init__.py
Empty file.
Loading

0 comments on commit 16f01f1

Please sign in to comment.