Browse Source

add config.toml(dev.toml)
add Stateful.py

nandHyf 1 year ago
parent
commit
d4c5bc9742
2 changed files with 26 additions and 0 deletions
  1. 1 0
      Stateful.py
  2. 25 0
      dev.toml

+ 1 - 0
Stateful.py

@@ -0,0 +1 @@
+import sqlite3, tomlkit

+ 25 - 0
dev.toml

@@ -0,0 +1,25 @@
+# ----- DB Configuration -----
+[tdc_main]
+c1 = "id"
+c2 = "type"
+c3 = "title"
+c4 = "dscrp"
+c5 = "status"
+
+# [xlarge_dscrp]
+# c1 = "id INTEGER"
+# c2 = "xl_dscrp BLOB"
+
+
+# ----- App Configuration -----
+
+
+# ----- Some Notes -----
+# CREATE TABLE "tdc_main" (
+# 	"id"	INTEGER NOT NULL,
+# 	"type"	INTEGER NOT NULL,
+# 	"title"	TEXT NOT NULL,
+# 	"dscrp"	TEXT NOT NULL,
+# 	"status"	INTEGER NOT NULL,
+# 	PRIMARY KEY("id" AUTOINCREMENT)
+# );