2. Using a Local Relational Databases- SQLite
Overview
SQLite Databases
มี database หลาย Platform ที่ใช้ใน python , อย่าง SQLite ไม่ต้องใช้ server
ต่างกับ PostgreSQL
ใช้ command line client opens a locally stored file ใช้ในหลาย scenario eg
1. used as embedded db
android app สามารถใช้ local SQLite db
2. ไม่ต้องใช้ server -จึงเป็น ideal สำหรับ prototyping and development
– และตอนจะ production ค่อยปป PostgreSQL
ใช้ VSC ได้ทั้ง 4 db
terminal
> sqlite3
เปิด .open command
sqlite > .open test.db ถ้ายังไม่มี ก็ create
