I hereby claim:
- I am gerald24 on github.
- I am yanbao (https://keybase.io/yanbao) on keybase.
- I have a public key whose fingerprint is D950 9A9F 043B 6D9C 4D32 EA52 F251 960B 34CC 9E41
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| import 'dart:mirrors'; | |
| import 'package:postgresql/postgresql.dart'; | |
| var uri = 'postgres://username:password@localhost:5432/database'; | |
| @DatabaseScript(1) | |
| initialDatabaseStructur(Connection conn) async { | |
| await conn.execute("create table a (version int, updated timestamp)"); | |
| await conn.execute('insert into a values (@version, @updated)', {'version': 2, 'updated': new DateTime.now()}); | |
| } |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| module iconv | |
| // brew install libiconv | |
| // copied from https://github.com/fanlia/iconv and adapted for current vlang version & macos | |
| #flag -I/opt/homebrew/opt/libiconv/include | |
| #flag -L/opt/homebrew/opt/libiconv/lib | |
| #flag -liconv | |
| #include <iconv.h> |