00:38
ua_ has quit [Read error: Connection reset by peer]
00:40
ua_ has joined #crystal-lang
00:43
ua_ has quit [Read error: Connection reset by peer]
00:45
ua_ has joined #crystal-lang
01:02
ur5us_ has quit [Ping timeout: 252 seconds]
02:13
ur5us_ has joined #crystal-lang
02:29
<
Sankalp >
Awesome! 🎉
05:10
ur5us_ has quit [Ping timeout: 248 seconds]
05:48
sagax has quit [Ping timeout: 256 seconds]
06:44
sagax has joined #crystal-lang
09:59
Sankalp has quit [Ping timeout: 256 seconds]
10:23
Sankalp has joined #crystal-lang
10:32
Sankalp has quit [Ping timeout: 252 seconds]
10:36
Sankalp has joined #crystal-lang
10:41
jmdaemon has joined #crystal-lang
11:08
<
Elouin >
Hi, is there an orm for sqlite that works with 1.4?
11:16
jmdaemon has quit [Ping timeout: 260 seconds]
11:32
Sankalp has quit [Ping timeout: 252 seconds]
11:45
Sankalp has joined #crystal-lang
15:07
Vexatos has quit [Ping timeout: 240 seconds]
15:07
Stephie has quit [Ping timeout: 260 seconds]
15:23
Stephie has joined #crystal-lang
15:23
Vexatos has joined #crystal-lang
15:44
<
Elouin >
Blacksmoke16: Thanks for the tip. Good to know that this exists. Though I want an ORM so I don't have to to inserts and updates myself.
15:44
<
FromGitter >
<Blacksmoke16> fair enough
15:45
<
Elouin >
Mainly because I don't want to fiddle with escaping and normalizing what the user is providing.
15:46
<
FromGitter >
<Blacksmoke16> fwiw, it would just be like `db.exec "insert into contacts values (?, ?)", "John Doe", 30`
15:46
<
FromGitter >
<Blacksmoke16> long as you use parameterized statements, it handles that for you
15:47
<
Elouin >
Thats injection safe?
15:47
<
FromGitter >
<Blacksmoke16> yea
15:49
<
Elouin >
Thanks a lot. Thats super nice and good to know.
15:50
<
Elouin >
There are only examples for mysql and postures. Would that work on SQLite too?
15:50
<
FromGitter >
<Blacksmoke16> yup
15:54
<
Elouin >
Ahh, OK. So the MySQL like syntax. Thanks. :)
15:54
<
FromGitter >
<Blacksmoke16> np
15:54
analogsalad has joined #crystal-lang
15:55
<
FromGitter >
<Blacksmoke16> works quite well. e.g. can do like `id = db.exec "insert into users (name, email) returning id", "Bob", "example@gmail.com", as: Int64`
15:55
<
FromGitter >
<Blacksmoke16> oops ⏎ ⏎ `id = db.exec "insert into users (name, email) values (?, ?) returning id", "Bob", "example@gmail.com", as: Int64`
15:56
<
FromGitter >
<Blacksmoke16> throw that in some module and is pretty easy to do like `SomeModule.save user`
16:38
analogsalad has quit [Quit: bye]
18:42
jmdaemon has joined #crystal-lang
18:45
analogsalad has joined #crystal-lang
19:43
void09 has joined #crystal-lang
19:44
void09 has quit [Client Quit]
19:45
void09 has joined #crystal-lang
20:21
jmd_ has joined #crystal-lang
20:21
jmdaemon has quit [Ping timeout: 240 seconds]
21:19
analogsalad has quit [Quit: bye]
21:56
ur5us_ has joined #crystal-lang
22:05
ur5us_ has quit [Remote host closed the connection]
22:05
ur5us_ has joined #crystal-lang
23:16
ur5us_ has quit [Ping timeout: 248 seconds]
23:20
ur5us has joined #crystal-lang
23:25
ur5us has quit [Ping timeout: 260 seconds]
23:51
greenbigfrog has joined #crystal-lang
23:55
ur5us has joined #crystal-lang