diff --git a/README.md b/README.md index 4e3cb01..e589e46 100644 --- a/README.md +++ b/README.md @@ -1913,8 +1913,7 @@ with : # Exits the block with commit() .execute('', ) # Replaces ':'s with values. .executemany('', ) # Runs execute() multiple times. ``` -* **Passed values can be of type str, int, float, bytes, None, bool, datetime.date or datetime.datetime.** -* **Bools will be stored and returned as ints and dates as [ISO formatted strings](#encode).** +* **Passed values can be of type str, int, float, bytes, None or bool (stored as 1 or 0).** ### Example **Values are not actually saved in this example because `'conn.commit()'` is omitted!** @@ -1928,6 +1927,7 @@ with : # Exits the block with commit() ``` ### SqlAlchemy +**Library for interacting with various DB systems via SQL, method chaining, or ORM.** ```python # $ pip3 install sqlalchemy from sqlalchemy import create_engine, text diff --git a/index.html b/index.html index 53a5151..3c707b5 100644 --- a/index.html +++ b/index.html @@ -1587,8 +1587,7 @@ CompletedProcess(args=['bc', ISO formatted strings. +
  • Passed values can be of type str, int, float, bytes, None or bool (stored as 1 or 0).
  • Example

    Values are not actually saved in this example because 'conn.commit()' is omitted!

    >>> conn = sqlite3.connect('test.db')
     >>> conn.execute('CREATE TABLE person (person_id INTEGER PRIMARY KEY, name, height)')
    @@ -1599,7 +1598,7 @@ CompletedProcess(args=['bc', SqlAlchemy
    # $ pip3 install sqlalchemy
    +

    SqlAlchemy

    Library for interacting with various DB systems via SQL, method chaining, or ORM.

    # $ pip3 install sqlalchemy
     from sqlalchemy import create_engine, text
     <engine> = create_engine('<url>')               # Url: 'dialect://user:password@host/dbname'.
     <conn>   = <engine>.connect()                   # Creates a connection. Also <conn>.close().
    @@ -1607,6 +1606,7 @@ CompletedProcess(args=['bc', with <conn>.begin(): ...                        # Exits the block with commit or rollback.
     
    +
    ┏━━━━━━━━━━━━┯━━━━━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
     ┃ Dialect    │ pip3 install │ import   │           Dependencies           ┃
     ┠────────────┼──────────────┼──────────┼──────────────────────────────────┨