We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Column definition in database have a max size definition. Trying to insert a bigger value with lino push failed.
lino push
Define a template with max size parameter that truncate string longer than max size definition.
$ jl -t '{"name": "string(4)"}' <<EOF {"name": "Martin"} EOF {"name":"Mart"}
The text was updated successfully, but these errors were encountered:
The proposed syntax will conflict with the way to define the raw type (for example jl -t '{"value":"binary(int64)"}' < file.jsonl)
jl -t '{"value":"binary(int64)"}' < file.jsonl
So we need another notation.
Sorry, something went wrong.
What is a raw type for a string ?
For example :
jl -t '{"value":"string([]byte)"}' < file.jsonl
The string value read from JSON will be transformed and the database driver will receive a []byte instead of a string.
[]byte
string
Here is a syntax with possibility to extend to other parameters
jl -t '{"name": "string(size=4)"}' jl -t '{"name": "string([]byte,size=4)"}'
No branches or pull requests
Problem
Column definition in database have a max size definition. Trying to insert a bigger value with
lino push
failed.Proposal
Define a template with max size parameter that truncate string longer than max size definition.
The text was updated successfully, but these errors were encountered: