|
391 | 391 | r = |
392 | 392 | DBInterface.execute( |
393 | 393 | db, |
394 | | - SQLite.@sr_str( |
| 394 | + @raw_str( |
395 | 395 | "SELECT LastName FROM Employee WHERE BirthDate REGEXP '^\\d{4}-08'" |
396 | 396 | ) |
397 | 397 | ) |> columntable |
@@ -907,7 +907,9 @@ function Base.iterate(::UnknownSchemaTable, st = 1) |
907 | 907 | end |
908 | 908 |
|
909 | 909 | @testset "SQLite Open Flags" begin |
910 | | - @test_throws SQLiteException("unable to open database file") SQLite.DB("file:test.db?mode=ro") |
| 910 | + @test_throws SQLiteException("unable to open database file") SQLite.DB( |
| 911 | + "file:test.db?mode=ro", |
| 912 | + ) |
911 | 913 |
|
912 | 914 | db = SQLite.DB("file:test.db?mode=rwc") |
913 | 915 | @test db isa SQLite.DB |
@@ -953,36 +955,26 @@ end |
953 | 955 | UnknownSchemaTable(), |
954 | 956 | db, |
955 | 957 | "tmp", |
956 | | - on_conflict = "ROLLBACK" |
| 958 | + on_conflict = "ROLLBACK", |
957 | 959 | ) |
958 | 960 | tbl = DBInterface.execute(db, "select * from tmp") |> columntable |
959 | 961 | @test tbl == (a = [], b = [], c = []) |
960 | 962 | @test_throws SQLite.SQLiteException SQLite.load!( |
961 | 963 | UnknownSchemaTable(), |
962 | 964 | db, |
963 | 965 | "tmp", |
964 | | - on_conflict = "ABORT" |
| 966 | + on_conflict = "ABORT", |
965 | 967 | ) |
966 | 968 | @test_throws SQLite.SQLiteException SQLite.load!( |
967 | 969 | UnknownSchemaTable(), |
968 | 970 | db, |
969 | 971 | "tmp", |
970 | | - on_conflict = "FAIL" |
971 | | - ) |
972 | | - SQLite.load!( |
973 | | - UnknownSchemaTable(), |
974 | | - db, |
975 | | - "tmp", |
976 | | - on_conflict = "IGNORE" |
| 972 | + on_conflict = "FAIL", |
977 | 973 | ) |
| 974 | + SQLite.load!(UnknownSchemaTable(), db, "tmp"; on_conflict = "IGNORE") |
978 | 975 | tbl = DBInterface.execute(db, "select * from tmp") |> columntable |
979 | 976 | @test tbl == (a = [1], b = [3], c = [4]) |
980 | | - SQLite.load!( |
981 | | - UnknownSchemaTable(), |
982 | | - db, |
983 | | - "tmp", |
984 | | - on_conflict = "REPLACE" |
985 | | - ) |
| 977 | + SQLite.load!(UnknownSchemaTable(), db, "tmp"; on_conflict = "REPLACE") |
986 | 978 | tbl = DBInterface.execute(db, "select * from tmp") |> columntable |
987 | 979 | @test tbl == (a = [1], b = [5], c = [6]) |
988 | 980 |
|
|
0 commit comments