Seed data
Në shqip: Të dhëna fillestare
ShpjegimiSQ
Seed data janë të dhëna shembull që i fut në databazë në fillim — p.sh. disa përdorues dhe produkte testi — që aplikacioni të mos jetë bosh kur e zhvillon ose e teston.
EnglishEN
Seed data is sample data you put into the database at the start — like a few test users and products — so the app isn't empty while you develop or test it.
Si ta mendosh
Si malli i parë që e vendos në raftet e një dyqani të ri para hapjes, që klientët e parë të gjejnë diçka.
Lexoje në anglisht
Like the first stock you put on a new shop's shelves before opening, so the first customers find something.
Shembull kodipython
nxenesit = [("Arta",), ("Besnik",), ("Dua",)]
db.executemany("INSERT INTO nxenesit (emri) VALUES (?)", nxenesit)