• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..22-Sep-2020-

README.mdH A D22-Sep-20201.2 KiB3529

db.goH A D22-Sep-202026 KiB990733

db_eval.goH A D22-Sep-202018.8 KiB768657

db_query.goH A D22-Sep-202013.6 KiB593432

db_test.goH A D22-Sep-202030.8 KiB1,096972

funcs.goH A D22-Sep-20203.9 KiB14198

inmem.goH A D22-Sep-202025.2 KiB927689

integration_test.goH A D22-Sep-202013.1 KiB416344

README.md

1This directory contains spannertest, an in-memory fake Cloud Spanner. A sibling
2directory, spansql, contains types and parser for the Cloud Spanner SQL dialect.
3
4spansql is reusable for anything that interacts with Cloud Spanner on a
5syntactic basis, such as tools for handling Spanner schema (DDL).
6
7spannertest builds on spansql for testing code that uses Cloud Spanner client
8libraries.
9
10Neither of these packages aims to be performant nor exact replicas of the
11production Cloud Spanner. They are reasonable for building tools, or writing
12unit or integration tests. Full-scale performance testing or serious workloads
13should use the production Cloud Spanner instead.
14
15Here's a list of features that are missing or incomplete. It is roughly ordered
16by ascending esotericism:
17
18- expression functions
19- more aggregation functions
20- INSERT/UPDATE DML statements
21- case insensitivity
22- alternate literal types (esp. strings)
23- STRUCT types
24- SELECT HAVING
25- joins
26- transaction simulation
27- expression type casting, coercion
28- SELECT aliases in FROM clause, ORDER BY
29- subselects
30- set operations (UNION, INTERSECT, EXCEPT)
31- partition support
32- conditional expressions
33- table sampling (implementation)
34- hints for table/joins
35