GithubHelp home page GithubHelp logo

gcpug / handy-spanner Goto Github PK

View Code? Open in Web Editor NEW
154.0 9.0 25.0 707 KB

An unofficial emulator of Cloud Spanner backed by sqlite3

License: Apache License 2.0

Dockerfile 0.06% Makefile 0.03% Go 99.91%
google-cloud-spanner

handy-spanner's People

Contributors

110y avatar castaneai avatar cloverrose avatar dominikeinkemmer avatar hamakn avatar kazegusuri avatar knsh14 avatar lihaotan avatar n-kesharwani avatar naoina avatar nktks avatar rugamaga avatar sinmetal avatar sters avatar storz avatar thealphadollar avatar toga4 avatar toshi0607 avatar zoncoen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

handy-spanner's Issues

Can handy-spanner Support DML?

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?

Support Query and DML in both of ExecuteStreamingSql and ExecuteSql

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"

Error: DEFAULT keyword

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.