Skip to content

Comments

docs: Add quickstart section to README#72

Merged
psarna merged 1 commit intotursodatabase:mainfrom
Abdur-rahmaanJ:docs/readme-install
Nov 17, 2022
Merged

docs: Add quickstart section to README#72
psarna merged 1 commit intotursodatabase:mainfrom
Abdur-rahmaanJ:docs/readme-install

Conversation

@Abdur-rahmaanJ
Copy link
Contributor

No description provided.

@psarna psarna requested a review from penberg November 17, 2022 18:28
@psarna psarna merged commit 9411165 into tursodatabase:main Nov 17, 2022
@psarna
Copy link
Contributor

psarna commented Nov 17, 2022

Thanks for the contribution!

@MarinPostma MarinPostma mentioned this pull request Oct 16, 2023
MarinPostma pushed a commit that referenced this pull request Oct 17, 2023
[rusqlite](https://crates.io/crates/rusqlite) crate seems to have way more traction than [sqlite](https://crates.io/crates/rusqlite), and also facilitates testing with libSQL, so let's switch to it.

NOTE: by default, rusqlite expects to find the `libsqlite3.so` (or `libsqlite3.dylib` for you mac people) somewhere in order to link to it, because it doesn't ship with precompiled SQLite unless you ask for a `bundled` feature, which I explicitly did not. So please test first if your setup works with the new code, perhaps sqlite needs to be installed. The fact that rusqlite links dynamically is convenient, because then you can test with your own compiled SQLite or libSQL by providing a custom search path for dynamic libs: `LD_LIBRARY_PATH=<path/to/your/libsql/source/dir/.libs> cargo run (...)`
MarinPostma added a commit that referenced this pull request Oct 17, 2023
72: wal file improvements r=MarinPostma a=MarinPostma

this PR introduces some overall improvements to our custom WAL file format.

- The WAL file header is improved to contain more informartion:
    - the database UUID that the log is replicating
    - Fields like initial checksum, start_frame_index for log compaction
    - a magic number
- Each WAL frame is now preceded by a `WalFrameHeader`, that contains:
    - The running checksum of the pages, including the current page.
    - The id of the start_frame_index
    - the page_no of the of the page contained in the frame
    - size_after: 0 on non-commit frame, otherwise, equal to the size (in page), of the database after applying those frames. (passed to and from the `xFrame` call).
- Use of Zerocopy to serialize and deserialize frames



169: proto: encode uuid as string r=MarinPostma a=MarinPostma



191: Revert "Revert "fix db path"" r=MarinPostma a=MarinPostma

Reverts libsql/sqld#184

192: .gitignore: ignore the new data directory r=psarna a=psarna

./data.sqld/ directory is runtime-only, so let's ignore it.

Co-authored-by: ad hoc <postma.marin@protonmail.com>
Co-authored-by: Piotr Sarna <sarna@chiselstrike.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants