Skip to content

Commit

Permalink
chore: Exclude README.md from CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
carlos-rian-qd committed Aug 22, 2024
1 parent 9f16c82 commit 084f75b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:
paths-ignore:
- "LICENSE"
- "SECURITY.md"
- "README.md"
- "makefile"
- ".gitingore"
#- ".github/workflows/*"
Expand All @@ -22,7 +21,6 @@ on:
paths-ignore:
- "LICENSE"
- "SECURITY.md"
- "README.md"
- "makefile"
- ".gitingore"
#- ".github/workflows/*"
Expand All @@ -33,6 +31,8 @@ env:

jobs:
rust-test:
# ignore because the pyo3 test not working
if: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ async def main(sql):
# Insert a row and return quantity rows affected
insert = pysqlx_core.PySQLxStatement(
provider="postgresql",
sql="INSERT INTO test (name) VALUES (:name);"
sql="INSERT INTO test (name) VALUES (:name);",
params={"name": "Carlos"}
)
await db.execute(stmt=insert)

# can you see the sql and params pre builded
print("SQL:", insert.sql())
# output: INSERT INTO test (name) VALUES (?);
# output: INSERT INTO test (name) VALUES ($1);
print("PARAMS:", insert.params())
# output: ['Carlos']

Expand All @@ -99,7 +99,7 @@ async def main(sql):
types = result.get_types() # Dict[str, str]

# Select all rows, return how List[Dict[str, Any]]
rows = await db.get_all(sql="SELECT * FROM test;")
rows = await db.query_all(pysqlx_core.PySQLxStatement(provider="postgresql", sql="SELECT * FROM test;"))

# close? no need 👌-> auto-close when finished programmer or go out of context..

Expand Down

0 comments on commit 084f75b

Please sign in to comment.