Software / code / prosody
Comparison
util/sql.lua @ 13240:a378937103cb
util.sql: Remove unused String() and Integer() functions
According to MattJ, leftovers from an earlier vision for util.sql
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 22 Jul 2023 14:55:27 +0200 |
| parent | 12975:d10957394a3c |
| child | 13632:844e7bf7b48a |
comparison
equal
deleted
inserted
replaced
| 13239:f2578a69ccf4 | 13240:a378937103cb |
|---|---|
| 25 | 25 |
| 26 local function is_column(x) return getmetatable(x)==column_mt; end | 26 local function is_column(x) return getmetatable(x)==column_mt; end |
| 27 local function is_index(x) return getmetatable(x)==index_mt; end | 27 local function is_index(x) return getmetatable(x)==index_mt; end |
| 28 local function is_table(x) return getmetatable(x)==table_mt; end | 28 local function is_table(x) return getmetatable(x)==table_mt; end |
| 29 local function is_query(x) return getmetatable(x)==query_mt; end | 29 local function is_query(x) return getmetatable(x)==query_mt; end |
| 30 local function Integer() return "Integer()" end | |
| 31 local function String() return "String()" end | |
| 32 | 30 |
| 33 local function Column(definition) | 31 local function Column(definition) |
| 34 return setmetatable(definition, column_mt); | 32 return setmetatable(definition, column_mt); |
| 35 end | 33 end |
| 36 local function Table(definition) | 34 local function Table(definition) |
| 376 return { | 374 return { |
| 377 is_column = is_column; | 375 is_column = is_column; |
| 378 is_index = is_index; | 376 is_index = is_index; |
| 379 is_table = is_table; | 377 is_table = is_table; |
| 380 is_query = is_query; | 378 is_query = is_query; |
| 381 Integer = Integer; | |
| 382 String = String; | |
| 383 Column = Column; | 379 Column = Column; |
| 384 Table = Table; | 380 Table = Table; |
| 385 Index = Index; | 381 Index = Index; |
| 386 create_engine = create_engine; | 382 create_engine = create_engine; |
| 387 db2uri = db2uri; | 383 db2uri = db2uri; |