database 0.2.7 Data kept in [SQLite](https://sqlite.org), a database in one file. What the data is, is a record; where its rows are kept is a table, declared with what's about keeping them: its unique values, its indexes, the rows it refers to, and the rules its rows keep. Queries are written as blocks, the way an array of the rows is asked, and each becomes one SQL statement. kept by Hematite, no licence yet, for Hematite 0.1 from file:///home/crispy/Code/hematite/packages/database checks ok tests (15) ok formatted ok documented ok no needs by path failed a licence: there's no LICENSE: say how others may use it ok the Hematite it's for: 0.1 ok version 0.2.7: nothing it exports changed since 0.2.6 exports record Check(field: String, message: String, rule: (Row): Boolean) record Group(key: Key, rows: Query[Row]) class Groups Groups#filter(condition: Code[(Group[Key, Row]): Boolean]): Groups[Key, Row] Groups#sort(descending: Boolean = ..., key: Code[(Group[Key, Row]): Value]): Groups[Key, Row] Groups#limit(count: Int): Groups[Key, Row] Groups#skip(count: Int): Groups[Key, Row] Groups#map(make: Code[(Group[Key, Row]): Out]): Query[Out] Groups#length(): Int! class Query Query#filter(condition: Code[(Row): Boolean]): Query[Row] Query#sort(descending: Boolean = ..., key: Code[(Row): Key]): Query[Row] Query#limit(count: Int): Query[Row] Query#skip(count: Int): Query[Row] Query#after(id: Int): Query[Row] Query#before(id: Int): Query[Row] Query#map(make: Code[(Row): Out]): Query[Out] Query#all(): [Row]! Query#first(): Row?! Query#length(): Int! Query#find(condition: Code[(Row): Boolean]): Row?! Query#any(condition: Code[(Row): Boolean]): Boolean! Query#sum(key: Code[(Row): Number]): Number! Query#min(key: Code[(Row): Value]): Value?! Query#max(key: Code[(Row): Value]): Value?! Query#average(key: Code[(Row): Number]): Float?! Query#values(key: Code[(Row): Value]): [Value]! Query#group(key: Code[(Row): Key]): Groups[Key, Row] Query#tally(key: Code[(Row): Key]): {Key: Int}! Query#count_unique(key: Code[(Row): Value]): Int! Query#change(make: Code[(Row): Row]): Int! Query#delete(): Int! class Table Table#everything(): Query[Row] Table#insert(row: Row): Row! Table#update(row: Row): ! Table#put(row: Row): Row! Table#find(id: Int): Row! Table#delete(id: Int): ! Table#query(sql: Code[(): String]): [Row]! Table#filter(condition: Code[(Row): Boolean]): Query[Row] Table#sort(descending: Boolean = ..., key: Code[(Row): Key]): Query[Row] Table#limit(count: Int): Query[Row] Table#skip(count: Int): Query[Row] Table#after(id: Int): Query[Row] Table#before(id: Int): Query[Row] Table#map(make: Code[(Row): Out]): Query[Out] Table#all(): [Row]! Table#first(): Row?! Table#length(): Int! Table#any(condition: Code[(Row): Boolean]): Boolean! Table#sum(key: Code[(Row): Number]): Number! Table#values(key: Code[(Row): Value]): [Value]! Table#min(key: Code[(Row): Value]): Value?! Table#max(key: Code[(Row): Value]): Value?! Table#average(key: Code[(Row): Number]): Float?! Table#change(make: Code[(Row): Row]): Int! Table#group(key: Code[(Row): Key]): Groups[Key, Row] Table#tally(key: Code[(Row): Key]): {Key: Int}! Table#count_unique(key: Code[(Row): Value]): Int! Table#checked(row: Row): ! table(name: String, unique: [String] = ..., indexes: [String] = ..., refers: {String: String} = ..., checks: [Check[Row]] = ...): Table[Row] class DB DB.open(path: String): ! DB.migrate(path: String, choices: [String] = ...): ! DB.backup(into: String): ! DB.transaction(): ! versions 0.2.7 2026-11-29 sha256-178c682dbb01 0.2.6 2026-11-29 sha256-d7dd5bb828f0 0.2.5 2026-11-29 sha256-aeb42c09b064 0.2.4 2026-11-28 sha256-e8550f79085b 0.2.3 2026-11-28 sha256-4bec4de2d96f 0.2.2 2026-11-27 sha256-12fb020c9702 0.2.1 2026-11-27 sha256-a3665db2b8dc 0.2.0 2026-11-27 sha256-c3f0b6c08618 0.1.6 2026-11-27 sha256-9d94f57251a5 0.1.5 2026-11-27 sha256-ab4f28447c42 0.1.4 2026-11-27 sha256-a0c4c9b94299 0.1.3 2026-11-27 sha256-5b0b6e601058 0.1.2 2026-11-27 sha256-64eadac63de1 0.1.1 2026-11-27 sha256-b32e32394a93 0.1.0 2026-11-27 sha256-92398da177e3 add it lode add database also /database.json, /database.txt