Brian Hendriks
d47096bb0b
Import fix to not put NullValue into types.Tuples for map values ( #2143 )
2021-09-16 13:23:38 -07:00
Zach Musgrave
71311b1073
Merge pull request #2112 from abmyii/fk-violation-error-fmt
...
Only show key name, not column tag number
2021-09-16 13:19:57 -07:00
AndyA
a75034047e
Merge pull request #2135 from dolthub/andy/config-init-branch
...
/go/libraries/doltcore/{env,doltdb,ref}: Add `init.defaultBranch` to Dolt Config
2021-09-16 13:15:18 -07:00
Daylon Wilkins
1d525a948a
Bump GMS
2021-09-16 12:35:45 -07:00
Andy Arthur
ed8f1def76
fix config bats test
2021-09-16 12:21:52 -07:00
Andy Arthur
f5551a3b69
pr feedback, make 'dolt config unset' case insensitive
2021-09-16 11:35:32 -07:00
Abdurrahmaan Iqbal
77833ba989
Only show key name, not column tag number
2021-09-16 19:25:24 +01:00
Andy Arthur
d59e68bcae
merged master
2021-09-16 10:30:41 -07:00
AndyA
d6ba9e2764
Merge pull request #2131 from dolthub/andy/create-dolt-database
...
Create Dolt Database
2021-09-16 09:40:44 -07:00
Maximilian Hoffman
1cfdb7ed57
Fetch refactor ( #2139 )
...
* Fetch refactor
* fix localbs-remotes test
* another missed bats
* zach's comments
2021-09-14 17:24:16 -07:00
Andy Arthur
ad53855fee
fixed bats
2021-09-14 13:15:21 -07:00
Andy Arthur
df5256d496
put back deleted tests
2021-09-14 11:49:51 -07:00
Andy Arthur
d019aaba09
changed default branch param key, added tests
2021-09-14 11:48:24 -07:00
Dustin Brown
c6eb60def4
Merge pull request #2119 from dolthub/db/unhide-sql-client
...
Release `dolt sql-client` command
2021-09-13 12:37:37 -07:00
Andy Arthur
effc8bffc9
Merge branch 'master' into andy/create-dolt-database
2021-09-13 12:27:23 -07:00
Maximilian Hoffman
ef2df6761f
add sql push and fetch ( #2120 )
...
* sql_pull compiles
* Fix sql-merge bats
* Fix merge bats tests, add pull
* Cleanup comments
* refactor fetch; inital dolt_fetch and dolt_push compile, untested
* push bats
* Fetch tests
* delete comments
* Better push status return
* PR touch ups
* Duplicate test name
* Zach's commentsg
* return push ErrUpToDate so cli can log
* [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh
Co-authored-by: max-hoffman <max-hoffman@users.noreply.github.com >
2021-09-13 12:22:36 -07:00
Daylon Wilkins
49e451cb82
Fixed VRW reference issues
2021-09-13 11:16:40 -07:00
Andy Arthur
c77a8b289f
fix create-database and revision database bats
2021-09-13 10:54:00 -07:00
Dustin Brown
a6ca77189e
/{go,integration-tests}: revert shell renames, skip on windows
2021-09-10 16:04:58 -07:00
Maximilian Hoffman
72cd1109fa
sql server dolt_pull function first pass ( #2102 )
...
* sql_pull compiles
* Fix sql-merge bats
* Fix merge bats tests, add pull
* Cleanup comments
* Some of zach's comments
* Fresh set of sql-pull unittests
* bats name typo
* Windows doesn't support file:/// with 3 slashes
* Add one more comment line
* fix one of the check errors
* Add short circuits to cli progress goroutines
* [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh
Co-authored-by: max-hoffman <max-hoffman@users.noreply.github.com >
2021-09-10 14:27:37 -07:00
Dustin Brown
949b4fe2e0
/{go, integration-tests}: unhide sql-client command
2021-09-10 14:07:36 -07:00
Abdurrahmaan Iqbal
e17bfddf57
All-caps CHAR for consistency
2021-09-09 22:58:50 +01:00
Abdurrahmaan Iqbal
a11b64e692
Modify error message format and add test
2021-09-09 22:58:50 +01:00
Brian Hendriks
775ac0af51
Import Performance and Garbage Generation improvements.
2021-09-08 14:52:42 -07:00
Aaron Son
7995467efb
integration-tests/bats: Add some bats tests for YYYY-M-D timestamp/date formats.
2021-09-02 10:21:55 -07:00
Daylon Wilkins
f7a63f1a19
Better case handling for system tables
2021-08-31 17:35:53 -07:00
Vinai Rachakonda
38ed60e8bf
Auto Increment Values should reset for a table after its been dropped ( #2074 )
...
This table fixes a bug where a table is dropped and then readded but its next auto increment value didn't reset.
2021-08-31 17:33:31 -07:00
Maximilian Hoffman
f5d63f4e3d
move common merge/push/pull code into doltcore/env ( #2063 )
...
* Start moving code out of cmd
* hacky cmd -> action/evn refactor
* progress
* String verbose error from lib, mostly not reconstructed on cli side
* Missing verbose errors in lib, still not handled in cli. Refactor vinai's doc diffs to not depend on merge
* Small progress commit on other laptop
* Merge bats passing
* format
* progress
* Remotes bats tests working
* More error fixes
* Fix cyclic foreign keys bats
* Fix import cycle
* Start cleaning up code
* Fix a couple bats
* Clean up comments and println
* Brian's comments
2021-08-31 15:23:23 -07:00
Vinai Rachakonda
cbf973d129
Addresses different types of panics with remotes/fetches Issue: #2048 ( #2067 )
...
This pr addresses three issues with fetching remotes.
- A panic with fetching a remote in the form "remotes/.." that is invalid
- A panic when an added remote that is then fetched is invalid
- A lack of error when fetching an invalid remote
2021-08-31 13:45:00 -07:00
Aaron Son
dd4657556c
Merge pull request #2072 from dolthub/aaron/sql-server-tls-support
...
go/cmd/dolt: commands/sqlserver: Add configuration settings for tls_key, tls_cert and require_secure_transport.
2021-08-31 09:33:58 -07:00
Daylon Wilkins
400d033d06
Removed case sensitivity for dolt system tables and db names
2021-08-30 15:51:54 -07:00
Aaron Son
3f7181ac5c
go/cmd/dolt: commands/sqlserver: Add configuration settings for tls_key, tls_cert and require_secure_transport.
2021-08-30 14:46:19 -07:00
Vinai Rachakonda
7dc12a3865
Implement --author for dolt revert and DOLT_REVERT() ( #2045 )
2021-08-30 13:17:47 -07:00
Vinai Rachakonda
228b0770e4
Resolve Issue #2052 : Fix bug that deletes a user created directory when clone fails.
...
This pr fixes an issue where a user runs `dolt clone <> dir/` to clone a database into directory `dir/`. Previously, when the clone failed the entire `dir/` repo would get deleted. Now, we check for `dir/`'s existence and try our best to remove the .dolt folder.
2021-08-30 10:52:26 -07:00
Maximilian Hoffman
afe0655019
dolt_remote table read path ( #1901 )
...
* Initial commit
* [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh
* use GetRemotes
* Add bats
* undo uncomment
* Fix lint, bats comment
* Insert improvements
* Refactor dsess
* Repo state remote access
* Rewrite dolt_remotes system implementation, refactor command.remote also
* Delete comments
* Small fixes
* Add adaptor methods
* Format
* missed an interface change
* Pass remotes to session state adaptor
* undo bad merge, uncomment bats
* add bats test for unsupported behavior
* Rewrite remote error handling
* Remote invalid errorf
* Fix error names
Co-authored-by: max-hoffman <max-hoffman@users.noreply.github.com >
2021-08-26 15:57:43 -07:00
Maximilian Hoffman
913f23cde1
drop primary key does not fail on foreign key conflict if fallback index exists ( #2040 )
...
* Add dolt drop pk edge cases
* Add bats tests
* Add bats
* comment edit
* delete unnuecessary lines
* remove unused fields
* Cosmetic fixes
* Add requested tests
* Prefer unique keys
* [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh
* better division of find fkc updates, and apply
* docstring and name change
* docstring missing unique preferred
* Add test
* Delete hanging unused func
Co-authored-by: max-hoffman <max-hoffman@users.noreply.github.com >
2021-08-26 15:52:49 -07:00
Daylon Wilkins
e69b812399
Changed TEXT types to use noms Blobs
2021-08-23 14:16:43 -07:00
Maximilian Hoffman
e34a9e5a48
global system var for sql-server session branch ( #2023 )
...
* Add system var for global branch and tests
* Add bats tests for global default branch
* Add global var query
* Fix accidental insert
* Progress commit, test hang
* Change default branch without touching repo state
* zach's comments
2021-08-20 16:33:42 -07:00
Timothy Sehn
202bc44dee
Added skipped bats test for some and associated warnings I was seeing
2021-08-19 10:22:06 -07:00
Vinai Rachakonda
6a46b679d8
Add or Drop Primary Keys
...
We can alter and drop primary keys!
2021-08-16 21:18:29 -07:00
Timothy Sehn
1d073e7932
Fix formatting
2021-08-16 15:08:15 -07:00
Timothy Sehn
91a7f2148c
Skipped bats test for duplicate rows in a table import -u --continue producing non-deterministic imports when repeated
2021-08-16 14:42:06 -07:00
Daylon Wilkins
a6716c1490
Added dolt revert
2021-08-11 12:54:20 -07:00
Zach Musgrave
c4a0f9acac
Merge pull request #2005 from dolthub/zachmu/1131
...
[no-release-notes] Reskip accidentally unskipped bats test
2021-08-11 12:13:48 -07:00
Zach Musgrave
58f3aaf5d5
Re-skipping test I accidentally unskipped
2021-08-11 11:23:49 -07:00
Zach Musgrave
53c6723197
Merge pull request #2004 from dolthub/zachmu/1131
...
Regression test for issue 1131
2021-08-11 11:22:20 -07:00
Zach Musgrave
a89988f992
Merge pull request #1998 from dolthub/zachmu/836
...
Bats test for return code behavior of checking out current branch
2021-08-11 11:21:05 -07:00
Zach Musgrave
ac23a248d2
Merge pull request #1994 from dolthub/zachmu/562
...
Added a test for git config and HOME env var
2021-08-11 11:16:13 -07:00
Zach Musgrave
4e8e3b96ca
Fixed bad test name
2021-08-11 10:57:05 -07:00
Zach Musgrave
1201262158
Regression test for issue 1131
2021-08-11 10:50:43 -07:00