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

sqlite: create_table(): rename rows param to columns (#8361)

This commit is contained in:
Lukas Neubert 2021-01-27 13:52:27 +01:00 committed by GitHub
parent 7a5722c885
commit 2ada7b730e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -179,6 +179,6 @@ pub fn (db DB) exec_param(query string, param string) []Row {
pub fn (db DB) insert<T>(x T) {
}
pub fn (db DB) create_table(table_name string, rows []string) {
db.exec('create table $table_name (' + rows.join(',\n') + ')')
pub fn (db DB) create_table(table_name string, columns []string) {
db.exec('create table $table_name (' + columns.join(',\n') + ')')
}