Strict typing has been the one big feature missing from SQLite, that this presumably brings.
Foreign keys enabled by default or by configuration setting would be another big feature missing from SQLite3, but I couldn't find any mention of foreign keys in DuckDB's documentation.
DuckDB – An embeddable SQL database like SQLite, but supports Postgres features
41–50 of 167 posts
Re: DuckDB – An embeddable SQL database like SQLite, but supports Postgres features
#42I spent a while looking at this today. It's really interesting. It's not based on SQLite at all (except for borrowing the SQLite shell implementation) but it looks very much like SQLite, in particular: - It's designed to work as an embedded library, eliminating the network overhead you usually get when talking to a database - Each database is a single file on disk - It ships as an "amalgamation" build - a single gian…
Re: DuckDB – An embeddable SQL database like SQLite, but supports Postgres features
#43Earlier quoted context omitted.
> - Each database is a single file on disk Are these architecture independent? i.e. If I create the database on x86_64 and move it to ARM64; would it work seamlessly?
One of the authors here - portability of the storage is indeed one of our goals. We test that the same file can be loaded everywhere on different systems, including between ARM and x86. I should mention the storage is still very much a work-in-progress. We are actively working on redesigning the storage to add compression and other extra features, meaning the storage format can change and be incompatible between diff…
Re: DuckDB – An embeddable SQL database like SQLite, but supports Postgres features
#44Earlier quoted context omitted.
One of the authors here - portability of the storage is indeed one of our goals. We test that the same file can be loaded everywhere on different systems, including between ARM and x86. I should mention the storage is still very much a work-in-progress. We are actively working on redesigning the storage to add compression and other extra features, meaning the storage format can change and be incompatible between diff…
Thanks for the confirmation on portability, I didn't see Go support in the home page; Is there an official Go driver support planned as well?
We also have a sqlite3 compatible C API that can be used to use DuckDB. This is actually how we use the sqlite3 shell: we directly use the sqlite shell but bind it to the duckdb library using this API. It might be possible to use the Go SQLite driver in a similar manner to talk to DuckDB.
Re: DuckDB – An embeddable SQL database like SQLite, but supports Postgres features
#45I spent a while looking at this today. It's really interesting. It's not based on SQLite at all (except for borrowing the SQLite shell implementation) but it looks very much like SQLite, in particular: - It's designed to work as an embedded library, eliminating the network overhead you usually get when talking to a database - Each database is a single file on disk - It ships as an "amalgamation" build - a single gian…
How might one go about using this in a language that’s not supported in the documentation such as golang?
We also have JDBC support, which might help for languages that know how to use that protocol. ODBC support is not implemented yet, but also planned.
We also have a SQLite-compatible C API [2], that can potentially be used to use an existing SQLite driver that uses the SQLite C API.
[1] https://github.com/marcboeker/go-duckdb
[2] https://github.com/cwida/duckdb/blob/master/tools/sqlite3_ap...
Re: DuckDB – An embeddable SQL database like SQLite, but supports Postgres features
#46Earlier quoted context omitted.
That's awesome news, thanks for that!
No problem I was curious as well and hunting it down, this project does seem interesting, I'm a huge fan of database systems like SQLite and H2. There's something wonderful about being able to copy a simple file and share it with other developers. This one seems rather interesting as well.
Re: DuckDB – An embeddable SQL database like SQLite, but supports Postgres features
#47When to use DuckDB ; When to not use DuckDB
Re: DuckDB – An embeddable SQL database like SQLite, but supports Postgres features
#48Re: DuckDB – An embeddable SQL database like SQLite, but supports Postgres features
#49Re: DuckDB – An embeddable SQL database like SQLite, but supports Postgres features
#50Earlier quoted context omitted.
> - Each database is a single file on disk Are these architecture independent? i.e. If I create the database on x86_64 and move it to ARM64; would it work seamlessly?
One of the authors here - portability of the storage is indeed one of our goals. We test that the same file can be loaded everywhere on different systems, including between ARM and x86. I should mention the storage is still very much a work-in-progress. We are actively working on redesigning the storage to add compression and other extra features, meaning the storage format can change and be incompatible between diff…