surrealdb-client-generator

Tool which generates a typescript client for SurrealDB and zod schema of a given database

MIT License

Downloads
363
Stars
72

Bot releases are hidden (Show)

surrealdb-client-generator - v2.6.0 Latest Release

Published by sebastianwessel about 2 months ago

surrealdb-client-generator - v2.5.3

Published by sebastianwessel 3 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/sebastianwessel/surrealdb-client-generator/compare/v2.5.2...v2.5.3

surrealdb-client-generator - v2.5.2

Published by sebastianwessel 3 months ago

surrealdb-client-generator - v2.5.0

Published by sebastianwessel 3 months ago

What's Changed

Shout Out

@hammo92 did amazing work:

Full Changelog: https://github.com/sebastianwessel/surrealdb-client-generator/compare/v2.4.0...v2.5.0

surrealdb-client-generator - v2.4.0

Published by sebastianwessel 3 months ago

surrealdb-client-generator - 2.3.0

Published by sebastianwessel 4 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/sebastianwessel/surrealdb-client-generator/compare/2.2.0...2.3.0

surrealdb-client-generator - 2.2.0

Published by sebastianwessel 4 months ago

What's Changed

Full Changelog: https://github.com/sebastianwessel/surrealdb-client-generator/compare/2.1.0...2.2.0

surrealdb-client-generator - v2.1.0

Published by sebastianwessel 4 months ago

Version 2.1.0

The whole mapping from SurrealQL to zod schema and client generation has been refactored.
This fixes (hopefully) several bugs.

The mapping has been improved. It now supports nested structure definitions.

Bugfix:

  • #8

Breaking Change

Special handling for lib surrealdb.node has been removed completely.
Only surrealdb.js is supported.

Full Changelog: https://github.com/sebastianwessel/surrealdb-client-generator/compare/2.0.0...2.1.0

surrealdb-client-generator - 2.0.0

Published by sebastianwessel 4 months ago

Version 2.0

Breaking changes

Version 2 has breaking changes!
The tool now uses surrealdb.js instead of surrealdb.node for interacting with a SurrealDB instance.
The change was made, because it seems that surrealdb.js is closer to the SurrealDB development process and more up to date in general.
This means, the option "memory" for connections is no longer available, and you need to run against a real running SurrealDB instance (use docker).

Also, option -f, --schemaFile has no longer a default value assigned, because this was forcing to always write to the database.

Fix

  • Does not support for "IF NOT EXISTS" syntax for DEFINE statements #7
  • Trouble connecting to my surrealdb instance #6
  • Fix default value issue for option schemaFile, which was forcing to write always to the database
surrealdb-client-generator - v1.1.2

Published by sebastianwessel 8 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/sebastianwessel/surrealdb-client-generator/compare/1.1.1...1.1.2

surrealdb-client-generator - 1.1.1

Published by sebastianwessel 9 months ago

surrealdb-client-generator - 1.1.0

Published by sebastianwessel about 1 year ago

Release 1.1.0

Feature

Add support for surrealdb.node package 🎉

Bugfix

  • #1 CLI parameter where misconfigured and now aligned and clean up
  • #2 Issue with uppercased table names fixed
surrealdb-client-generator - 1.0.0

Published by sebastianwessel about 1 year ago

First version, which is almost untested.