{"repo":"dumblepy/nim-allographer","free":true,"listed":false,"github":"https://github.com/dumblepy/nim-allographer","clone":"git clone https://github.com/dumblepy/nim-allographer.git","description":"A query_builder/ORM library inspired by Laravel/PHP and Orator/Python for Nim","language":"Nim","stars":170,"topics":["nim","nim-lang","orm","query-builder","database","rdb","mariadb","mysql","postgresql","sqlite3"],"license":"MIT","category":"databases-storage","readme_excerpt":"allographer === An asynchronous query builder library inspired by Laravel/PHP and Orator/Python for Nim. Supported Databases are Sqlite3, PostgreSQL, MySQL and MariaDB. (SurrealDB is planned to be supported in v3) Supported Nim v2 Easy to access Rdb Query Builder Schema Builder Index - allographer - Easy to access Rdb - Query Builder - Schema Builder - Index - Install - Configuation - Createing connection - Logging - Documents - Nim API Documents - v2 - Development - Branch naming rule --- Install If you get SIGSEGV: Illegal storage access. (Attempt to read from nil?) when trying to use the database you likely have a problem with the library path. On OS X the default is to check for the brew --prefix of the chosen driver, if that doesn't work it will look in /usr/lib or an environment variable DYLD xxx PATH where xxx if your driver: SQLITE , MARIADB , MYSQL or POSTGRES . Configuation Allographer loads emvironment variables of DB SQLITE , DB POSTGRES , DB MYSQL and DB MARIADB to define which process should be compiled . ( DB SURREAL is planned to be supported in v3) These environment variables have to be set at compile time, so they have to be written in config.nims not in .env . config.nims In this example, even if your runtime environment lacks mysqlclient-dev , execution will success. However if your runtime environment lacks sqlite3 , execution will fail. Createing connection Database connection should be definded as singleton variable. database.nim Then, call connection w","default_branch":null,"files":null,"tree":[],"storefront":"/r/dumblepy","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dumblepy/nim-allographer/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}