Skip to content
New issue

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

Add default() function #10

Open
sirex opened this issue Jun 6, 2024 · 0 comments
Open

Add default() function #10

sirex opened this issue Jun 6, 2024 · 0 comments

Comments

@sirex
Copy link
Contributor

sirex commented Jun 6, 2024

Pridėti default() funkciją, kuri nurodytų reikšmę pagal nutylėjimą, kuri priskiriama, kai kuriamas naujas objektas insert veiksmas, arba kai perrašomas objektas nenurodant property reikšmės update veiksmas.

model property type ref source prepare
sql sqlite://
id
City id CITIES
id integer CITY_ID
name@lt string CITY_NAME default("")

Šiame pavyzdyje prepare stulpelyje nurodyta, kad name@lt reikšmė, pagal nutylėjimą keičiama į default(""), jei nenurodyta kitaip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Implementing
Development

No branches or pull requests

1 participant