gcpug / handy-spanner Goto Github PK
View Code? Open in Web Editor NEWAn unofficial emulator of Cloud Spanner backed by sqlite3
License: Apache License 2.0
An unofficial emulator of Cloud Spanner backed by sqlite3
License: Apache License 2.0
Handy-spanner doesn't support new method.
Then when I update cloud.google.com/go/spanner to 1.36.0, I get this error.
*server does not implement FakeSpannerServer (missing ListDatabaseRoles method)
Request:
I am trying to use handy-spanner emulator for project using spanner and we have CURRENT_TIMESTAMP functions used in queries, right now it is not supported by this emulator.
Is it possible for handy-spanner support CURRENT_TIMESTAMP function? It already supports PENDING_COMMIT_TIMESTAMP and implementation should be similar to this.
handy-spanner/server/database_function.go
Line 417 in 955ee70
My project needs to simulate a offline spanner, but except handy-spanner, I can't find a better solution at present.However, it fully not yet supported DML.
Can handy-spanner support DML or is there any plans to support DML in the future?
Currently, handy-spanner supports only DML for ExecuteSql
and only queries for ExecuteStreamingSql
.
In the real instance, the both of ExecuteSql
and ExecuteStreamingSql
can execute the both of queries and DMLs.
It makes handy-spanner incompatible with the current behavior of spanner-cli.
(THEN RETURN
support needs to execute DMLs using ExecuteStreamingSql
in the current Cloud Spanner client library.)
cloudspannerecosystem/spanner-cli#151
spanner> INSERT INTO Counter(pk, col) VALUES(0, 0);
ERROR: spanner: code = "InvalidArgument", desc = "Syntax error: \"INSERT INTO Counter(pk, col) VALUES(0, 0)\": syntax error::1:1: expected token: SELECT, but: <ident>\n\n 1: INSERT INTO Counter(pk, col) VALUES(0, 0)\n ^~~~~~\n"
For example, how do I create a database locally and how can I view my data in sqlite3๏ผ
The following SQL will cause an error.
CREATE TABLE table ( Id INT64 NOT NULL DEFAULT (3)) PRIMARY KEY (Id)
invalid ddl "CREATE TABLE table ( Id INT64 NOT NULL DEFAULT (3)) PRIMARY KEY (Id)": syntax error::1:41: expected token: ), but: DEFAULT
Are there any plans for handy-spanner to support the DEFAULT keyword?
Spanner release notes:
https://cloud.google.com/spanner/docs/release-notes#April_14_2022
Document:
https://cloud.google.com/spanner/docs/reference/standard-sql/data-definition-language#ddl_syntax
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.