No description
Find a file
2023-03-30 21:18:56 +02:00
src bugs fixed and less recursive calls 2023-03-30 21:18:56 +02:00
.gitignore initial stage 2022-10-27 17:27:47 +02:00
.gitlab-ci.yml ci-rust 2022-10-27 17:38:33 +02:00
Cargo.toml clippy warnings fixed 2022-10-28 16:56:44 +02:00
LICENSE Add LICENSE 2022-10-27 15:30:47 +00:00
README.md writes the database file, needs bugfixing 2022-10-30 11:38:23 +01:00

Sqlighte.Rs

Creating a database will be as simple as:

fn test_build() -> Result<(), Error> {
        let mut builder = Builder::new();
        builder.schema(
            "foo",
            "create table foo(bar varchar(10))",
        );
        let mut record = Record::new(1);
        record.add_value(values::string("helloworld"));
        builder.add_record(record);

        let database: Database = builder.into();
        let file = File::create("foo.db")?;
        let writer = BufWriter::new(file);
        write(database, writer)?;
        Ok(())
    }