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

pull/8376/head
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
1 changed files with 2 additions and 2 deletions

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') + ')')
}