[@portaljs/components][xl] - @portaljs/ckan package
+ Accompaning example using said package + Removed the "example" from all the examples names
This commit is contained in:
14
examples/learn/lib/mddb.ts
Normal file
14
examples/learn/lib/mddb.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { MarkdownDB } from "@flowershow/markdowndb";
|
||||
|
||||
const dbPath = "markdown.db";
|
||||
|
||||
const client = new MarkdownDB({
|
||||
client: "sqlite3",
|
||||
connection: {
|
||||
filename: dbPath,
|
||||
},
|
||||
});
|
||||
|
||||
const clientPromise = client.init();
|
||||
|
||||
export default clientPromise;
|
||||
Reference in New Issue
Block a user