1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

make << work with appending arrays; PostgreSQL driver

This commit is contained in:
Alexander Medvednikov
2019-07-04 01:56:18 +02:00
parent fcf8909c75
commit 8f10e37370
11 changed files with 151 additions and 75 deletions

View File

@@ -18,11 +18,13 @@ pub fn new_builder(initial_size int) Builder {
pub fn (b mut Builder) write(s string) {
b.buf._push_many(s.str, s.len)
//b.buf << []byte(s) // TODO
b.len += s.len
}
pub fn (b mut Builder) writeln(s string) {
b.buf._push_many(s.str, s.len)
//b.buf << []byte(s) // TODO
b.buf << `\n`
b.len += s.len + 1
}