Skip to content

merge upstream #1

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 38 commits into from
Jan 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
0937960
Switch statment when reading
BrandonRoehl Mar 18, 2019
9823f56
All in the templates
BrandonRoehl Mar 18, 2019
63aca4f
Fix test type
BrandonRoehl Mar 18, 2019
6cb5948
Version bump
BrandonRoehl Mar 18, 2019
f61ba94
Merge pull request #1 from BrandonRoehl/master
BrandonRoehl Mar 28, 2019
34666eb
WIP 1
BrandonRoehl Mar 28, 2019
c7cef00
Major refactor
BrandonRoehl Mar 29, 2019
bb5c4f9
Data streams
BrandonRoehl Mar 29, 2019
dabcd57
With data streams
BrandonRoehl Mar 29, 2019
db86117
Bump the version
BrandonRoehl Mar 29, 2019
298b70a
Merge pull request #2 from BrandonRoehl/master
BrandonRoehl Apr 1, 2019
70aca04
inset spliting
BrandonRoehl Apr 4, 2019
1cff840
The MySQL way
BrandonRoehl Apr 4, 2019
4a93eb2
Remove debug
BrandonRoehl Apr 4, 2019
de45383
Fix the test
BrandonRoehl Apr 4, 2019
e58e36d
Update export
BrandonRoehl Apr 4, 2019
d66f8c4
Merge pull request #3 from BrandonRoehl/master
BrandonRoehl Apr 5, 2019
c2fe4af
Update README.md
Greg0 Jun 26, 2019
3ee6198
Merge pull request #4 from Greg0/patch-1
BrandonRoehl Jun 27, 2019
53765f2
Add the ability to lock all tables
BrandonRoehl Sep 24, 2019
19bd136
Merge branch 'master' into lock-tables-first
BrandonRoehl Sep 24, 2019
89292d2
Bump the version number
BrandonRoehl Sep 24, 2019
f00cfb1
Starting to transaction wrap
BrandonRoehl Sep 25, 2019
fdb7b50
Have all statments run on the same transaction
BrandonRoehl Sep 25, 2019
4517c0a
There is no locking by default just a read transaction
BrandonRoehl Sep 25, 2019
adf372a
Change the version down
BrandonRoehl Sep 25, 2019
ca1be9d
Convert to go mod
BrandonRoehl Sep 26, 2019
55278b1
Update comments and pointers
BrandonRoehl Sep 26, 2019
cfdd697
Fix the comment
BrandonRoehl Sep 30, 2019
cd198d0
Merge pull request #5 from BrandonRoehl/lock-tables-first
BrandonRoehl Oct 1, 2019
ecd436b
Merge branch 'master' into single-transaction
BrandonRoehl Oct 1, 2019
d725434
Consolidate the for loops
BrandonRoehl Oct 1, 2019
5c7d255
Merge branch 'single-transaction' of github.com:BrandonRoehl/go-mysql…
BrandonRoehl Oct 1, 2019
f25e26f
Merge pull request #6 from BrandonRoehl/single-transaction
BrandonRoehl Oct 1, 2019
b6b4ed7
Don't need to store the reflection type
BrandonRoehl Oct 8, 2019
f5bcf36
Don't need to store the reflection type
BrandonRoehl Oct 8, 2019
4f247b0
Don't need DEP
BrandonRoehl Oct 9, 2019
38ef509
Merge pull request #7 from BrandonRoehl/dont-need-to-store-the-reflec…
BrandonRoehl Oct 9, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: go

go:
- 1.11.x
- 1.13.x
- master

script:
Expand Down
15 changes: 0 additions & 15 deletions Gopkg.lock

This file was deleted.

26 changes: 0 additions & 26 deletions Gopkg.toml

This file was deleted.

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ func main() {
config.Addr = "your-hostname:your-port"

dumpDir := "dumps" // you should create this directory
dumpFilenameFormat := fmt.Sprintf("%s-20060102T150405", dbname) // accepts time layout string and add .sql at the end of file
dumpFilenameFormat := fmt.Sprintf("%s-20060102T150405", config.DBName) // accepts time layout string and add .sql at the end of file

db, err := sql.Open("mysql", config.FormatDNS())
db, err := sql.Open("mysql", config.FormatDSN())
if err != nil {
fmt.Println("Error opening database: ", err)
return
Expand All @@ -39,12 +39,12 @@ func main() {
}

// Dump database to file
resultFilename, err := dumper.Dump()
err := dumper.Dump()
if err != nil {
fmt.Println("Error dumping:", err)
return
}
fmt.Printf("File is saved to %s", resultFilename)
fmt.Printf("File is saved to %s", dumpFilenameFormat)

// Close dumper, connected database and file stream.
dumper.Close()
Expand Down
Loading