feat(modefied)
This commit is contained in:
1 parent
d705f2f9d3
commit
e3110c3897
12 files changed
+237
-63
No files matched your search
@@ -0,0 +1,11 @@
|
||||
import sqlite3
|
||||
from module.product import Product
|
||||
|
||||
def get_products(db_name: str = 'pipe_store.db', parent_id: int = 1) -> List[Product]:
|
||||
conn = sqlite3.connect(db_name)
|
||||
conn.row_factory = sqlite3.Row
|
||||
transaction = conn.cursor()
|
||||
|
||||
products = []
|
||||
|
||||
transaction.execute("SELECT ... FROM products")
|
||||
Reference in new issue
Block a user