Last active
July 2, 2019 18:14
-
-
Save breim/bc2773cdb87978bdee62dd0155f5e497 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Entrar no console | |
$ adonis repl | |
# Inciar database | |
database = use('Database') | |
# Rodar a query | |
(await database.select('*').from('influencers')) | |
# Update | |
(await use('Database').table('users').update({ type: 'admin' }).where('id', 2)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment