-
-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
109 changed files
with
4,143 additions
and
734 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
martin-mbtiles/tests/snapshots/mbtiles__copy_and_convert@convert-z2__flat-flat.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
source: martin-mbtiles/tests/mbtiles.rs | ||
expression: result | ||
--- | ||
[[]] | ||
type = 'table' | ||
tbl_name = 'metadata' | ||
sql = ''' | ||
CREATE TABLE metadata ( | ||
name text NOT NULL PRIMARY KEY, | ||
value text)''' | ||
values = [ | ||
'( "agg_tiles_hash", "3EF965216C312B07314DB600E06EBCFE" )', | ||
'( "md-edit", "value - v1" )', | ||
'( "md-remove", "value - remove" )', | ||
'( "md-same", "value - same" )', | ||
] | ||
|
||
[[]] | ||
type = 'table' | ||
tbl_name = 'tiles' | ||
sql = ''' | ||
CREATE TABLE tiles ( | ||
zoom_level integer NOT NULL, | ||
tile_column integer NOT NULL, | ||
tile_row integer NOT NULL, | ||
tile_data blob, | ||
PRIMARY KEY(zoom_level, tile_column, tile_row))''' | ||
values = [ | ||
'( 2, 0, 0, blob(z2-same) )', | ||
'( 2, 0, 1, blob(z2-edit-v1) )', | ||
'( 2, 1, 1, blob(z2-remove) )', | ||
] | ||
|
||
[[]] | ||
type = 'index' | ||
tbl_name = 'metadata' | ||
|
||
[[]] | ||
type = 'index' | ||
tbl_name = 'tiles' |
49 changes: 49 additions & 0 deletions
49
martin-mbtiles/tests/snapshots/mbtiles__copy_and_convert@convert-z2__flat-hash.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
source: martin-mbtiles/tests/mbtiles.rs | ||
expression: result | ||
--- | ||
[[]] | ||
type = 'table' | ||
tbl_name = 'metadata' | ||
sql = ''' | ||
CREATE TABLE metadata ( | ||
name text NOT NULL PRIMARY KEY, | ||
value text)''' | ||
values = [ | ||
'( "agg_tiles_hash", "3EF965216C312B07314DB600E06EBCFE" )', | ||
'( "md-edit", "value - v1" )', | ||
'( "md-remove", "value - remove" )', | ||
'( "md-same", "value - same" )', | ||
] | ||
|
||
[[]] | ||
type = 'table' | ||
tbl_name = 'tiles_with_hash' | ||
sql = ''' | ||
CREATE TABLE tiles_with_hash ( | ||
zoom_level integer NOT NULL, | ||
tile_column integer NOT NULL, | ||
tile_row integer NOT NULL, | ||
tile_data blob, | ||
tile_hash text, | ||
PRIMARY KEY(zoom_level, tile_column, tile_row))''' | ||
values = [ | ||
'( 2, 0, 0, blob(z2-same), "6F75FF79F5F1B1B50092156993AAAA70" )', | ||
'( 2, 0, 1, blob(z2-edit-v1), "EF0200E805A812D1A756F8E6B62BDFD4" )', | ||
'( 2, 1, 1, blob(z2-remove), "625803A8AA8863AD897EA2F3716FB6D7" )', | ||
] | ||
|
||
[[]] | ||
type = 'index' | ||
tbl_name = 'metadata' | ||
|
||
[[]] | ||
type = 'index' | ||
tbl_name = 'tiles_with_hash' | ||
|
||
[[]] | ||
type = 'view' | ||
tbl_name = 'tiles' | ||
sql = ''' | ||
CREATE VIEW tiles AS | ||
SELECT zoom_level, tile_column, tile_row, tile_data FROM tiles_with_hash''' |
Oops, something went wrong.