Beaver Dam, New Brunswick

Beaver Dam is a settlement in York County, New Brunswick.

Beaver Dam
Location of Beaver Dam in New Brunswick

History

Notable people

gollark: ```nimimport optionsimport asyncdispatchimport httpximport tiny_sqliteimport macrosimport karax/[karaxdsl, vdom]import ./dbmacro includeFile(x: string): string = newStrLitNode(readFile(x.strVal))const css = includeFile("./src/style.css")let database = openDatabase("./monitoring.sqlite3")migrate(database)var threadDB {.threadvar.}: Option[DbConn]proc openDB(): DbConn = if isNone threadDB: threadDB = some openDatabase("./monitoring.sqlite3") get threadDBproc mainPage(): string = let vnode = buildHtml(html()): head: style: text css text "Bee deployed" $vnodeproc onRequest(req: Request) {.async.} = if req.httpMethod == some(HttpGet): case req.path.get() of "/": req.send(body=mainPage(), code=Http200, headers="Content-Type: text/html") else: req.send(Http404) else: req.send(Http404)echo "Starting up"run(onRequest, initSettings(Port(7800), "", 0))```This is what I have so far.
gollark: One per thread is likely sort of better ish slightly anyway.
gollark: Nope, this is probably fine.
gollark: I have a threadvar for each thread's DB connection and a function to get it.
gollark: Nope, I think I have a solution.

See also

References

    This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.