@@ -187,7 +187,7 @@ func (s *DBRootCommandShellSuite) Test_GivenAEmptyTable_WhenCallDotDumpCommand_E
187
187
s .tc .Assert (errS , qt .Equals , "" )
188
188
prefix := "PRAGMA foreign_keys=OFF;\n BEGIN TRANSACTION;\n CREATE TABLE"
189
189
if ! strings .HasSuffix (s .dbUri , "test.sqlite" ) {
190
- prefix += " if not exists libsql_wasm_func_table (name text primary key, body text) without rowid; \n CREATE TABLE if not exists "
190
+ prefix += " if not exists"
191
191
}
192
192
expected := " alltypes (textNullable text, textNotNullable text NOT NULL, textWithDefault text DEFAULT 'defaultValue', \n \t intNullable INTEGER, intNotNullable INTEGER NOT NULL, intWithDefault INTEGER DEFAULT '0', \n \t floatNullable REAL, floatNotNullable REAL NOT NULL, floatWithDefault REAL DEFAULT '0.0', \n \t unknownNullable NUMERIC, unknownNotNullable NUMERIC NOT NULL, unknownWithDefault NUMERIC DEFAULT 0.0, \n \t blobNullable BLOB, blobNotNullable BLOB NOT NULL, blobWithDefault BLOB DEFAULT 'x\" 0\" ');\n COMMIT;"
193
193
s .tc .AssertSqlEquals (outS , prefix + expected )
@@ -205,7 +205,7 @@ func (s *DBRootCommandShellSuite) Test_GivenATableConainingRandomFields_WhenInse
205
205
206
206
prefix := "PRAGMA foreign_keys=OFF;\n BEGIN TRANSACTION;\n CREATE TABLE"
207
207
if ! strings .HasSuffix (s .dbUri , "test.sqlite" ) {
208
- prefix += " if not exists libsql_wasm_func_table (name text primary key, body text) without rowid; \n CREATE TABLE if not exists "
208
+ prefix += " if not exists"
209
209
}
210
210
expected := " alltypes (t text, i integer, r real, b blob);\n INSERT INTO alltypes VALUES('text',99,3.14,X'0123456789ABCDEF');\n COMMIT;"
211
211
@@ -223,7 +223,7 @@ func (s *DBRootCommandShellSuite) Test_GivenATableConainingFieldsWithALLTypes_Wh
223
223
224
224
prefix := "PRAGMA foreign_keys=OFF;\n BEGIN TRANSACTION;\n CREATE TABLE"
225
225
if ! strings .HasSuffix (s .dbUri , "test.sqlite" ) {
226
- prefix += " if not exists libsql_wasm_func_table (name text primary key, body text) without rowid; \n CREATE TABLE if not exists "
226
+ prefix += " if not exists"
227
227
}
228
228
expected := " alltypes (textNullable text, textNotNullable text NOT NULL, textWithDefault text DEFAULT 'defaultValue', \n \t intNullable INTEGER, intNotNullable INTEGER NOT NULL, intWithDefault INTEGER DEFAULT '0', \n \t floatNullable REAL, floatNotNullable REAL NOT NULL, floatWithDefault REAL DEFAULT '0.0', \n \t unknownNullable NUMERIC, unknownNotNullable NUMERIC NOT NULL, unknownWithDefault NUMERIC DEFAULT 0.0, \n \t blobNullable BLOB, blobNotNullable BLOB NOT NULL, blobWithDefault BLOB DEFAULT 'x\" 0\" ');\n INSERT INTO alltypes VALUES(NULL,'text2','defaultValue',NULL,0,0,NULL,1.5,0,NULL,0,0,NULL,X'0123456789ABCDEF','x\" 0\" ');\n COMMIT;"
229
229
@@ -242,7 +242,7 @@ func (s *DBRootCommandShellSuite) Test_GivenATableWithRecords_WhenCreateIndexAnd
242
242
243
243
prefix := "PRAGMA foreign_keys=OFF;\n BEGIN TRANSACTION;\n CREATE TABLE"
244
244
if ! strings .HasSuffix (s .dbUri , "test.sqlite" ) {
245
- prefix += " if not exists libsql_wasm_func_table (name text primary key, body text) without rowid; \n CREATE TABLE if not exists "
245
+ prefix += " if not exists"
246
246
}
247
247
expected := " alltypes (textNullable text, textNotNullable text NOT NULL, textWithDefault text DEFAULT 'defaultValue', \n \t intNullable INTEGER, intNotNullable INTEGER NOT NULL, intWithDefault INTEGER DEFAULT '0', \n \t floatNullable REAL, floatNotNullable REAL NOT NULL, floatWithDefault REAL DEFAULT '0.0', \n \t unknownNullable NUMERIC, unknownNotNullable NUMERIC NOT NULL, unknownWithDefault NUMERIC DEFAULT 0.0, \n \t blobNullable BLOB, blobNotNullable BLOB NOT NULL, blobWithDefault BLOB DEFAULT 'x\" 0\" ');\n CREATE INDEX idx_textNullable on alltypes (textNullable);\n CREATE INDEX idx_intNotNullable on alltypes (intNotNullable) WHERE intNotNullable > 1;\n COMMIT;"
248
248
@@ -261,7 +261,7 @@ func (s *DBRootCommandShellSuite) Test_GivenATableWithRecordsWithSingleQuote_Whe
261
261
262
262
prefix := "PRAGMA foreign_keys=OFF;\n BEGIN TRANSACTION;\n CREATE TABLE"
263
263
if ! strings .HasSuffix (s .dbUri , "test.sqlite" ) {
264
- prefix += " if not exists libsql_wasm_func_table (name text primary key, body text) without rowid; \n CREATE TABLE if not exists "
264
+ prefix += " if not exists"
265
265
}
266
266
expected := " t (id integer primary key, textfield text, intfield integer);\n insert into t values(0,'x''x',0);\n commit;"
267
267
@@ -277,7 +277,7 @@ func (s *DBRootCommandShellSuite) Test_GivenATableNameStartingWithNumber_WhenCal
277
277
278
278
prefix := "PRAGMA foreign_keys=OFF;\n BEGIN TRANSACTION;\n CREATE TABLE"
279
279
if ! strings .HasSuffix (s .dbUri , "test.sqlite" ) {
280
- prefix += " if not exists libsql_wasm_func_table (name text primary key, body text) without rowid; \n CREATE TABLE if not exists "
280
+ prefix += " if not exists"
281
281
}
282
282
expected := " \" 8test\" (id integer primary key, textfield text, intfield integer);\n insert into \" 8test\" values(1,'value',1);\n commit;"
283
283
@@ -293,7 +293,7 @@ func (s *DBRootCommandShellSuite) Test_GivenATableNameWithSpecialCharacters_When
293
293
294
294
prefix := "PRAGMA foreign_keys=OFF;\n BEGIN TRANSACTION;\n CREATE TABLE"
295
295
if ! strings .HasSuffix (s .dbUri , "test.sqlite" ) {
296
- prefix += " if not exists libsql_wasm_func_table (name text primary key, body text) without rowid; \n CREATE TABLE if not exists "
296
+ prefix += " if not exists"
297
297
}
298
298
expected := " \" t+e(s!t?\" (id integer primary key, textfield text, intfield integer);\n insert into \" t+e(s!t?\" values(1,'value',1);\n commit;"
299
299
0 commit comments