Giter VIP home page Giter VIP logo

grdbsnapshottesting's People

Contributors

groue avatar sebastianosinski 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

Watchers

 avatar  avatar  avatar  avatar

Forkers

groue pierlis cojoj

grdbsnapshottesting's Issues

Suggestion: remove internal SQLite and GRDB database objects from snapshot

Hello @SebastianOsinski,

Thanks for GRDBSnapshotTesting, it works like a charm ๐Ÿ‘ I wanted to suggest a change (two, actually).

Database snapshots currently contain internal SQLite and GRDB objects:

======== TABLES ========
CREATE TABLE grdb_migrations (
  identifier TEXT NOT NULL PRIMARY KEY
)

CREATE TABLE sqlite_sequence(
  name
  seq
)

======== DATA ========

## grdb_migrations
...

## sqlite_sequence
...

I'm wondering if those objects are useful for the tests.

As internal objects, they can change, without notice, from one version of SQLite or GRDB to another.

I'm also worrying that those objects make it difficult to generate snapshots without relying of the initial snapshot generation (*).

If you agree that we could do without them, then why not exclude them from the snapshot? It is easy to do so: all SQLite Internal Schema Objects have the sqlite_ prefix. All GRDB internal objects have the grdb_ prefix (not publicly documented, but I know it firsthand ;-)).

(*) On that second question, I'm also wondering if sorting objects by name wouldn't be a net improvement. Sorting objects by name would have another benefit: by easing the comparison between two subsequent schemas with a simple diff, it helps deciding if a snapshot is correct or not.

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.