mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-04-25 08:46:49 +02:00
123 lines
3.5 KiB
Text
123 lines
3.5 KiB
Text
# serializer version: 1
|
|
# name: test_shadow
|
|
OrderedDict({
|
|
'sql': 'select * from sqlite_master order by name',
|
|
'rows': list([
|
|
OrderedDict({
|
|
'type': 'index',
|
|
'name': 'sqlite_autoindex_v_metadata_chunks00_1',
|
|
'tbl_name': 'v_metadata_chunks00',
|
|
'rootpage': 8,
|
|
'sql': None,
|
|
}),
|
|
OrderedDict({
|
|
'type': 'index',
|
|
'name': 'sqlite_autoindex_v_metadata_text_data_00_1',
|
|
'tbl_name': 'v_metadata_text_data_00',
|
|
'rootpage': 10,
|
|
'sql': None,
|
|
}),
|
|
OrderedDict({
|
|
'type': 'index',
|
|
'name': 'sqlite_autoindex_v_vector_chunks00_1',
|
|
'tbl_name': 'v_vector_chunks00',
|
|
'rootpage': 6,
|
|
'sql': None,
|
|
}),
|
|
OrderedDict({
|
|
'type': 'table',
|
|
'name': 'sqlite_sequence',
|
|
'tbl_name': 'sqlite_sequence',
|
|
'rootpage': 3,
|
|
'sql': 'CREATE TABLE sqlite_sequence(name,seq)',
|
|
}),
|
|
OrderedDict({
|
|
'type': 'table',
|
|
'name': 'v',
|
|
'tbl_name': 'v',
|
|
'rootpage': 0,
|
|
'sql': 'CREATE VIRTUAL TABLE v using vec0(a float[1], partition text partition key, metadata text, +name text, chunk_size=8)',
|
|
}),
|
|
OrderedDict({
|
|
'type': 'table',
|
|
'name': 'v_auxiliary',
|
|
'tbl_name': 'v_auxiliary',
|
|
'rootpage': 11,
|
|
'sql': 'CREATE TABLE "v_auxiliary"( rowid integer PRIMARY KEY , value00)',
|
|
}),
|
|
OrderedDict({
|
|
'type': 'table',
|
|
'name': 'v_chunks',
|
|
'tbl_name': 'v_chunks',
|
|
'rootpage': 2,
|
|
'sql': 'CREATE TABLE "v_chunks"(chunk_id INTEGER PRIMARY KEY AUTOINCREMENT,size INTEGER NOT NULL,sequence_id integer,partition00,validity BLOB NOT NULL, rowids BLOB NOT NULL)',
|
|
}),
|
|
OrderedDict({
|
|
'type': 'table',
|
|
'name': 'v_metadata_chunks00',
|
|
'tbl_name': 'v_metadata_chunks00',
|
|
'rootpage': 7,
|
|
'sql': 'CREATE TABLE "v_metadata_chunks00"(rowid PRIMARY KEY, data BLOB NOT NULL)',
|
|
}),
|
|
OrderedDict({
|
|
'type': 'table',
|
|
'name': 'v_metadata_text_data_00',
|
|
'tbl_name': 'v_metadata_text_data_00',
|
|
'rootpage': 9,
|
|
'sql': 'CREATE TABLE "v_metadata_text_data_00"(rowid PRIMARY KEY, data TEXT)',
|
|
}),
|
|
OrderedDict({
|
|
'type': 'table',
|
|
'name': 'v_rowids',
|
|
'tbl_name': 'v_rowids',
|
|
'rootpage': 4,
|
|
'sql': 'CREATE TABLE "v_rowids"(rowid INTEGER PRIMARY KEY AUTOINCREMENT,id,chunk_id INTEGER,chunk_offset INTEGER)',
|
|
}),
|
|
OrderedDict({
|
|
'type': 'table',
|
|
'name': 'v_vector_chunks00',
|
|
'tbl_name': 'v_vector_chunks00',
|
|
'rootpage': 5,
|
|
'sql': 'CREATE TABLE "v_vector_chunks00"(rowid PRIMARY KEY,vectors BLOB NOT NULL)',
|
|
}),
|
|
]),
|
|
})
|
|
# ---
|
|
# name: test_shadow.1
|
|
OrderedDict({
|
|
'sql': "select * from pragma_table_list where type = 'shadow'",
|
|
'rows': list([
|
|
OrderedDict({
|
|
'schema': 'main',
|
|
'name': 'v_auxiliary',
|
|
'type': 'shadow',
|
|
'ncol': 2,
|
|
'wr': 0,
|
|
'strict': 0,
|
|
}),
|
|
OrderedDict({
|
|
'schema': 'main',
|
|
'name': 'v_rowids',
|
|
'type': 'shadow',
|
|
'ncol': 4,
|
|
'wr': 0,
|
|
'strict': 0,
|
|
}),
|
|
OrderedDict({
|
|
'schema': 'main',
|
|
'name': 'v_chunks',
|
|
'type': 'shadow',
|
|
'ncol': 6,
|
|
'wr': 0,
|
|
'strict': 0,
|
|
}),
|
|
]),
|
|
})
|
|
# ---
|
|
# name: test_shadow.2
|
|
OrderedDict({
|
|
'sql': "select * from pragma_table_list where type = 'shadow'",
|
|
'rows': list([
|
|
]),
|
|
})
|
|
# ---
|