Add Ormin ORM support for BaraDB (Nim client)
CI / test (push) Has been cancelled
CI / verify (push) Has been cancelled
Clients CI / build-server (push) Has been cancelled
Clients CI / test-python (push) Has been cancelled
Clients CI / test-javascript (push) Has been cancelled
Clients CI / test-nim (push) Has been cancelled
Clients CI / test-rust (push) Has been cancelled
CI / test (push) Has been cancelled
CI / verify (push) Has been cancelled
Clients CI / build-server (push) Has been cancelled
Clients CI / test-python (push) Has been cancelled
Clients CI / test-javascript (push) Has been cancelled
Clients CI / test-nim (push) Has been cancelled
Clients CI / test-rust (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import db_sqlite, os, strutils
|
||||
|
||||
let db {.global.} = open("tweeter.db", "", "", "")
|
||||
|
||||
let sqlFile = readFile(currentSourcePath.parentDir() / "tweeter_model.sql")
|
||||
for t in sqlFile.split(';'):
|
||||
if t.strip() != "":
|
||||
db.exec(sql(t))
|
||||
|
||||
echo("Database created successfully!")
|
||||
db.close()
|
||||
Reference in New Issue
Block a user