Michał Matczuk
d25129e2fc
migrate: Add support CQL comment callbacks
...
This patch adds a new migration event type CallComment that it triggered by adding `-- CALL <name>;` comment in a CQL file.
Fixes #101
2020-12-03 13:37:56 +01:00
Michał Matczuk
cea42f14c7
Update tests to use v2
...
Signed-off-by: Michał Matczuk <michal@scylladb.com >
2020-04-29 10:54:39 +02:00
Michał Matczuk
95d96fa939
Merge pull request #3 from hailocab/upstream-merge
...
Upstream merge
Add Session wrapper
With this patch we can now use gocqlx like:
```
session.Query(`SELECT * FROM struct_table`, nil).Get(&v)
```
instead of (old format):
```
gocqlx.Query(session.Query(`SELECT * FROM struct_table`), nil).Get(&v)
```
Signed-off-by: Michał Matczuk <michal@scylladb.com >
2020-04-21 10:07:45 +02:00
Michał Matczuk
710f921b79
Remove deprecated top level functions Get and Select
...
Signed-off-by: Michał Matczuk <michal@scylladb.com >
2020-04-16 12:39:34 +02:00
Daniel Lohse
ed4fad9742
Add DefaultAwaitSchemaAgreement option (disabled by default)
...
Depending on what is set, schema agreement is checked before each file or before each statement.
Awaiting schema agreement after every migration has run is always done.
2020-02-05 15:23:06 +01:00
Michał Matczuk
1668ca5832
Updated golandci-lint to 1.21.0
...
Signed-off-by: Michał Matczuk <michal@scylladb.com >
2019-11-07 16:13:50 -08:00
Michał Matczuk
d5caed56c3
readme: updated docs
2018-05-25 14:20:59 +02:00
Michał Matczuk
b4347d2757
migrate: migration integration tests
2018-05-24 14:36:14 +02:00
Michał Matczuk
e74702cb6a
migrate: migration callbacks
...
Callback enables interrupting the migration process and executing code
while migrating.
2018-05-23 16:02:40 +02:00
Michał Matczuk
ca0bd49565
migrate: replace tinyint with int
...
Tinyint is not supported on scylla enterprise.
2017-12-20 16:03:08 +01:00
Vasileios Karagkounis
cab01c8d25
Provide feedback if no files or statements found ( #32 )
...
Provide feedback if no migration files were found
2017-12-19 09:57:50 +01:00
Daniel Cunha (soro)
d14aa34200
Moved var to const
2017-10-25 09:28:13 -02:00
Michał Matczuk
9604635e8e
migrate: renamed table
2017-09-25 10:01:48 +02:00
Michał Matczuk
3351b1f9a3
migrate
2017-09-22 14:05:26 +02:00