Better HN
topnewbestaskshowjobs
Log inSign up

cannadayr

26 karma · joined Jun 30, 2018 (8y ago) · 10 submissions

Submissions

comment 1y ago · link · parent

Location: California

Remote: Yes

Willing to relocate: Maybe

Technologies: BQN, Erlang, C

Résumé/CV: email me

Email: my username at gmail dot com

comment 6y ago · link · parent

I'm pretty satisfied with gnu apl.

comment 7y ago · link · parent

Location: Boston, MA

Remote: Yes

Willing to relocate: No

Technologies: PHP, Bash, SQL, Javascript, Apache2, MariaDB, Postfix, Bind9, OpenVPN, Varnish, Debian, FreeBSD

Résumé/CV: https://github.com/cannadayr/resume/blob/master/resume.pdf

Email: cannadayr@gmail.com

comment 8y ago · link · parent

Could you expand on the benefits to this?

Basically, git-sqlite already supports merges (see link above)

comment 8y ago · link · parent

yup, np. shoot me an email sometime, looks like we're on a similar page.

comment 8y ago · link · parent

Yes, I saw similar ideas ~ a year ago, & figured it was possible. It was just a matter of using sqlite's (excellent) sqldiff utility and wrapping a custom git diff driver. Took about an evening to get the proof-of-concept working and a little more fiddling for ease of use.

I don't have stress test results, but it should be similar to git. I think I remember getting it up to several hundred megabytes at one point and it was fine. I mostly use it for smaller sets of highly relational data that I want to track like I would source code.

By leveraging git & sqlite it lets me avoid writing a network sync implementation, architecture specific code, or patching any C code to recompile.

comment 8y ago · link · parent

Neat. I'll have to compare this to my own implementation.

https://github.com/cannadayr/git-sqlite

Instead of storing the transactions as a separate lmdb commit, I decided to store the database in a git repository and expose the diffs using sqlite's sqldiff utility. This allowed my workflow to be almost unchanged and limits the dependencies to git, sqlite, sqldiff, & bash.

comment 8y ago · link · parent

I solved this problem by wrapping sqldiff (included w/ sqlite src) as a custom git diff driver.

https://github.com/cannadayr/git-sqlite

comment 8y ago · link · parent

If people are a little confused about what this does, it lets you track a sqlite database using git. If a change is detected to the database, the diff is the set of sql queries necessary to mutate the database from one state to the next.

I have found it to be extremely useful for certain problems.

10.

Show HN: Git-sqlite, a custom diff and merge driver for sqlite(github.com ↗)

6 points · by cannadayr · 8y ago · 1 comment