Skip to content

crates/core: add ValueRef and Column#235

Merged
psarna merged 21 commits intotursodatabase:mainfrom
psarna:column_valref
Jul 27, 2023
Merged

crates/core: add ValueRef and Column#235
psarna merged 21 commits intotursodatabase:mainfrom
psarna:column_valref

Conversation

@psarna
Copy link
Contributor

@psarna psarna commented Jul 27, 2023

Draft for now, since I'm actively working on migrating sqld on top of the new interfaces. Only once both work, I'll proceed with this PR.

@psarna psarna marked this pull request as ready for review July 27, 2023 08:21
Null,
Integer(i64),
Real(f64),
Text(&'a [u8]),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor but we could leave this as a str to keep the enforced utf8 since its trivial to convert back into a u8.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fair enough, rusqlite was like that probably mostly to satisfy weird windows encodings, but we're more opinionated on that front

@psarna psarna added this pull request to the merge queue Jul 27, 2023
Merged via the queue into tursodatabase:main with commit 9d093dd Jul 27, 2023
@psarna psarna deleted the column_valref branch July 27, 2023 13:23
MarinPostma pushed a commit that referenced this pull request Oct 17, 2023
235: Hrana server authentication r=honzasp a=honzasp

Implement authentication in Hrana using JWTs. An Ed25519 public key is passed to sqld using `--hrana-jwt-key-file`, and the received JWT is verified using this key. We ignore the claims, except by validating the expiration in `exp`.

I also added a helper script `scripts/gen_jwt.py` to generate the key and a JWT.

This PR is stacked on top of #231.

Co-authored-by: Jan Špaček <patek.mail@gmail.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.

2 participants