codenotary / immudb

immudb - immutable database based on zero trust, SQL/Key-Value/Document model, tamperproof, data change history
https://immudb.io
Other
8.54k stars 341 forks source link

Trying to work with sql files #1772

Closed JonatanAlcaraz closed 10 months ago

JonatanAlcaraz commented 1 year ago

Hello, I am testing the tool. Basically what I want is to be able to pass the folder that contains the tables in sql format so that immudb creates them. For some reason I am not being able to make immudb take these files into account when I try to pass them through the compose file with docker. If anyone knows the solution, it would be a great help, thanks

jeroiraz commented 1 year ago

Hi @JonatanAlcaraz, thanks for reaching out. Could you please describe the issue you are having in more detail?

Reading sql statements from a file should be possible but there is no direct way to specify a file as input for the sql statements.

Here https://github.com/codenotary/immudb-client-examples/tree/master/go/stdlib-init-script you will find a very minimalistic sample reading sql statement from a file. This sample is not using the sdk but the golang stdlib to interact with immudb