Skip to content

Commit

Permalink
v2 - transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
essenciary committed Sep 7, 2021
1 parent f897941 commit 682a0b0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "SearchLightPostgreSQL"
uuid = "4327cdd6-4902-11ea-0272-430cea0431bd"
authors = ["Adrian Salceanu <[email protected]>"]
version = "1"
version = "2.0.0"

[deps]
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
Expand All @@ -12,5 +12,5 @@ SearchLight = "340e8cb6-72eb-11e8-37ce-c97ebeb32050"
[compat]
DataFrames = "1"
LibPQ = "1"
SearchLight = "1"
SearchLight = "2"
julia = "1"
24 changes: 24 additions & 0 deletions src/SearchLightPostgreSQL.jl
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,30 @@ function SearchLight.Migration.column_id_sequence(table_name::Union{String,Symbo
end


#### TRANSACTIONS ####


function SearchLight.Transactions.begin_transaction() :: Nothing
SearchLight.query("BEGIN")

nothing
end


function SearchLight.Transactions.commit_transaction() :: Nothing
SearchLight.query("COMMIT")

nothing
end


function SearchLight.Transactions.rollback_transaction() :: Nothing
SearchLight.query("ROLLBACK")

nothing
end


#### GENERATOR ####


Expand Down

4 comments on commit 682a0b0

@essenciary
Copy link
Member Author

Choose a reason for hiding this comment

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

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

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

Registration pull request created: JuliaRegistries/General/49609

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v2.0.0 -m "<description of version>" 682a0b0debc53019d716f1fafa3e510742ec49d7
git push origin v2.0.0

@essenciary
Copy link
Member Author

Choose a reason for hiding this comment

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

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

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

Registration pull request updated: JuliaRegistries/General/49609

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v2.0.0 -m "<description of version>" 682a0b0debc53019d716f1fafa3e510742ec49d7
git push origin v2.0.0

Please sign in to comment.