sq/drivers/sqlite3/testdata
Neil O'Toole 1ea24dac4a
#229: sq diff core (#230)
* "sq diff" initial implementation

* Refactor "cli" pkg.
2023-05-19 08:24:18 -06:00
..
empty.db Initial work on a JSON driver (#70) 2020-10-20 09:05:43 -06:00
misc.db codebase refactor 2020-08-06 11:58:47 -06:00
README.md #229: sq diff core (#230) 2023-05-19 08:24:18 -06:00
recreate_sakila_sqlite.sh codebase refactor 2020-08-06 11:58:47 -06:00
sakila_db codebase refactor 2020-08-06 11:58:47 -06:00
sakila_diff.db #229: sq diff core (#230) 2023-05-19 08:24:18 -06:00
sakila_whitespace.db #229: sq diff core (#230) 2023-05-19 08:24:18 -06:00
sakila-whitespace-alter.sql Support table and column names with spaces. (#156) 2023-03-22 00:17:34 -06:00
sakila-whitespace-restore.sql Support table and column names with spaces. (#156) 2023-03-22 00:17:34 -06:00
sakila-whitespace.db #229: sq diff core (#230) 2023-05-19 08:24:18 -06:00
sakila.db #229: sq diff core (#230) 2023-05-19 08:24:18 -06:00
sqlite-sakila-delete-data.sql codebase refactor 2020-08-06 11:58:47 -06:00
sqlite-sakila-drop-objects.sql codebase refactor 2020-08-06 11:58:47 -06:00
sqlite-sakila-insert-data.sql codebase refactor 2020-08-06 11:58:47 -06:00
sqlite-sakila-schema.sql codebase refactor 2020-08-06 11:58:47 -06:00
type_test.ddl codebase refactor 2020-08-06 11:58:47 -06:00

Sakila SQLite Test Data

sakila.db

sakila.db contains the standard Sakila dataset. It can be regenerated from the sqlite-sakila-X.sql SQL scripts using recreate_sakila_sqlite.sh.

sakila_diff.db

sakila_diff.db is a lightly modified variant of sakila.db, for use with test sq diff.

  • The actor table is missing the second row.
    DELETE FROM actor WHERE actor_id=2;
    
  • There's a new table awards.

sakila_whitespace.db

sakila_whitespace.db contains a mutated Sakila schema, with some table and column names changed. This is to facilitate testing of sq's ability to support such names. The mutated DB is achieved by applying sakila-whitespace-alter.sql to sakila.db. The changes can be reversed with `sakila-whitespace-restore.sql.