Skip to content

First steps towards DB Connection #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Feb 20, 2021

Conversation

dmitriid
Copy link
Contributor

@dmitriid dmitriid commented Feb 20, 2021

I've split this into many small commits :D

I'm now stuck with handle_execute because Sqlite3 expects a SQL statement, but prepare returns a reference. Haven't looked into this yet. I finally figured it out in #3 🙄

I'm following myxql somewhat closely, but currently only implementing the most barebone functionality. Also see inline #TODO comments

I've tested what I have so far manually.

@warmwaffles
Copy link
Member

If you go take a look at #1 you'll see that I follow myxql closely, but I also pulled bits and pieces out of sqlite_ecto2. That PR is more just a big glob of changes as I try to understand and work through some of the decisions made in ecto_sql


# TODO: handle/track SAVEPOINT
case Keyword.get(opts, :mode, :deferred) do
:immediate -> handle_transaction(:begin, "BEGIN IMMEDIATE TRANSACTION", state)
Copy link
Member

Choose a reason for hiding this comment

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

cool I completely forgot about these modes for the transaction 👍🏻

@warmwaffles warmwaffles merged commit a8979f4 into elixir-sqlite:main Feb 20, 2021
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