DataRaft swift package
This commit is contained in:
parent
d64c6b2ef2
commit
1b2cdaf23e
23 changed files with 1862 additions and 0 deletions
12
Tests/DataRaftTests/Resources/migration_1.sql
Normal file
12
Tests/DataRaftTests/Resources/migration_1.sql
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
-- Create table User
|
||||
CREATE TABLE User (
|
||||
id INTEGER PRIMARY KEY,
|
||||
name TEXT NOT NULL,
|
||||
email TEXT NOT NULL
|
||||
);
|
||||
|
||||
-- Insert values into User
|
||||
INSERT INTO User (id, name, email)
|
||||
VALUES
|
||||
(1, 'john_doe', 'john@example.com'), -- Inserting John Doe
|
||||
(2, 'jane_doe', 'jane@example.com'); -- Inserting Jane Doe
|
||||
11
Tests/DataRaftTests/Resources/migration_2.sql
Normal file
11
Tests/DataRaftTests/Resources/migration_2.sql
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
-- Create table Device
|
||||
CREATE TABLE Device (
|
||||
id INTEGER PRIMARY KEY,
|
||||
model TEXT NOT NULL
|
||||
);
|
||||
|
||||
-- Insert values into Device
|
||||
INSERT INTO Device (id, model)
|
||||
VALUES
|
||||
(1, 'iPhone 14'), -- Inserting iPhone 14
|
||||
(2, 'iPhone 15'); -- Inserting iPhone 15
|
||||
2
Tests/DataRaftTests/Resources/migration_3.sql
Normal file
2
Tests/DataRaftTests/Resources/migration_3.sql
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
-- Wrong sql statement
|
||||
WRONG SQL STATEMENT;
|
||||
1
Tests/DataRaftTests/Resources/migration_4.sql
Normal file
1
Tests/DataRaftTests/Resources/migration_4.sql
Normal file
|
|
@ -0,0 +1 @@
|
|||
-- Empty Script
|
||||
Loading…
Add table
Add a link
Reference in a new issue