migrate: refactor examples to use the new FromFS function

This commit is contained in:
Michał Matczuk
2021-04-30 11:30:55 +02:00
committed by Michal Jan Matczuk
parent fe1498fe13
commit d123214401
3 changed files with 25 additions and 11 deletions

View File

@@ -0,0 +1,13 @@
// Copyright (C) 2017 ScyllaDB
// Use of this source code is governed by a ALv2-style
// license that can be found in the LICENSE file.
// +build all integration
package cql
import "embed"
// Files contains *.cql schema migration files.
//go:embed *.cql
var Files embed.FS

View File

@@ -0,0 +1,15 @@
-- Comment
CREATE TABLE bar ( id int PRIMARY KEY);
INSERT INTO bar (id) VALUES (1);
-- CALL 1;
INSERT INTO bar (id) VALUES (2);
-- CALL 2;
INSERT INTO bar (id) VALUES (3);
-- CALL 3;