All Projects → GULPF → tiny_sqlite

GULPF / tiny_sqlite

Licence: MIT license
A thin SQLite wrapper for Nim

Programming Languages

nim
578 projects

Projects that are alternatives of or similar to tiny sqlite

Generation
⭐ A Private, Secure, End-to-End Encrypted Messaging app made in Flutter(With Firebase and SQLite) that helps you to connect with your connections without any Ads, promotion. No other third-party person, organization, or even Generation Team can't read your messages. 💝
Stars: ✭ 18 (-64%)
Mutual labels:  sqlite3
Athena
Test your Security Skills, and Clean Code Development as a Pythonist, Hacker & Warrior 🥷🏻
Stars: ✭ 43 (-14%)
Mutual labels:  sqlite3
SQLiteQueryServer
Bulk query SQLite database over the network
Stars: ✭ 48 (-4%)
Mutual labels:  sqlite3
QuickDAO
Simple Data Access Object library with LinQ and multiengine support for (Windows,Linux,OSX/IOS/Android) and freepascal (Windows/Linux)
Stars: ✭ 49 (-2%)
Mutual labels:  sqlite3
libpassqlite
libPasSQLite is delphi and object pascal bindings and wrapper around SQLite library. SQLite is library that implements a small, fast, self-contained, high-reliability, full-featured, SQL database engine.
Stars: ✭ 18 (-64%)
Mutual labels:  sqlite3
food-sqlite-demo
This tutorial we will save text from EditText and Image from gallery into SQLite database
Stars: ✭ 58 (+16%)
Mutual labels:  sqlite3
WendzelNNTPd
A usable and IPv6-ready Usenet-server (NNTP daemon). It is portable (Linux/*BSD/*nix), supports AUTHINFO authentication, contains ACL as well as role based ACL and provides "invisible" newsgroups. It can run on MySQL and SQLite backends.
Stars: ✭ 43 (-14%)
Mutual labels:  sqlite3
mqtt2sql
Copy MQTT topic payloads to MySQL/SQLite database
Stars: ✭ 54 (+8%)
Mutual labels:  sqlite3
v2ex-collections-search
v2ex收藏搜索
Stars: ✭ 21 (-58%)
Mutual labels:  sqlite3
antares
A modern, fast and productivity driven SQL client with a focus in UX.
Stars: ✭ 836 (+1572%)
Mutual labels:  sqlite3
NSP
A Social Network that brings engineer's from all fields together to collaborate 🌐
Stars: ✭ 28 (-44%)
Mutual labels:  sqlite3
Queries
SQLite queries
Stars: ✭ 57 (+14%)
Mutual labels:  sqlite3
PT-Tracking
Aplicação para registo e acompanhamento de encomendas da CTT Expresso, automatiza a consulta online do estado de tracking para várias remessas e mantém um registo dos pagamentos referentes aos envios à cobrança. As remessas que requerem atenção, devido a atrasos na entrega ou na receção do pagamento correspondente, bem como os cheques cuja data …
Stars: ✭ 18 (-64%)
Mutual labels:  sqlite3
Pharo-SQLite3
Community-owned official SQLite3 binding for Pharo
Stars: ✭ 19 (-62%)
Mutual labels:  sqlite3
web trader
📊 Python Flask game that consolidates data from Nasdaq, allowing the user to practice buying and selling stocks.
Stars: ✭ 21 (-58%)
Mutual labels:  sqlite3
Bank-Account-Simulation
A Bank Account Simulation with JavaFX and SQLite back-end. Material UX|UI.
Stars: ✭ 19 (-62%)
Mutual labels:  sqlite3
convert-db-to-csv
convert-db-to-csv.sh is a shell script that uses SQLite3 to convert a .db file into .csv files. It converts each of the tables in the database into csv files.
Stars: ✭ 58 (+16%)
Mutual labels:  sqlite3
finger.farm
Finger.Farm Modern Finger Protocol Hosting... kind of a fingerd implementation in Node
Stars: ✭ 38 (-24%)
Mutual labels:  sqlite3
EFCore-SQLite-XamarinForms
Sample app for using Entity Framework Core 2.0 on .NET Standard with SQLite for Xamarin Forms.
Stars: ✭ 25 (-50%)
Mutual labels:  sqlite3
bun
SQL-first Golang ORM
Stars: ✭ 1,570 (+3040%)
Mutual labels:  sqlite3

tiny_sqlite CI

tiny_sqlite is a comparatively thin wrapper for the SQLite database library. It differs from the standard library module std/db_sqlite in several ways:

  • tiny_sqlite represents database values with a typesafe case object called DbValue instead of treating every value as a string, which among other things means that SQLite NULL values can be properly supported.

  • tiny_sqlite is not designed as a generic database API, only SQLite will ever be supported. The database modules in the standard library are built with replaceability in mind so that the code might work with several different database engines just by replacing an import. This is not the case for tiny_sqlite.

  • tiny_sqlite is safe. Unlike std/db_sqlite the raw SQLite handles are not used directly to prevent use-after-free bugs triggering undefined behavior.

Installation

tiny_sqlite is available on Nimble:

nimble install tiny_sqlite

Usage

import tiny_sqlite, std / options

let db = openDatabase(":memory:")
db.execScript("""
CREATE TABLE Person(
    name TEXT,
    age INTEGER
);

INSERT INTO
    Person(name, age)
VALUES
    ("John Doe", 47);
""")

db.exec("INSERT INTO Person VALUES(?, ?)", "Jane Doe", nil)

for row in db.iterate("SELECT name, age FROM Person"):
    let (name, age) = row.unpack((string, Option[int]))
    echo name, " ", age

# Output:
# John Doe Some(47)
# Jane Doe None[int]

Documentation

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].