feat(modefied)

This commit is contained in:
Black_Raven committed 2026-03-17 12:08:19 +03:00
1 parent d705f2f9d3
commit e3110c3897
12 files changed
+237 -63

No files matched your search

+11
View File
@@ -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")