chore: ⬆️ updated deps
This commit is contained in:
+39
@@ -184,6 +184,14 @@ func applyQueryParams(c *conn, query string) error {
|
||||
c.integerTimeFormat = v
|
||||
}
|
||||
|
||||
if v := q.Get("_timezone"); v != "" {
|
||||
loc, err := time.LoadLocation(v)
|
||||
if err != nil {
|
||||
return fmt.Errorf("unknown _timezone %q: %w", v, err)
|
||||
}
|
||||
c.loc = loc
|
||||
}
|
||||
|
||||
if v := q.Get("_txlock"); v != "" {
|
||||
lower := strings.ToLower(v)
|
||||
if lower != "deferred" && lower != "immediate" && lower != "exclusive" {
|
||||
@@ -201,6 +209,15 @@ func applyQueryParams(c *conn, query string) error {
|
||||
c.intToTime = onoff
|
||||
}
|
||||
|
||||
if v := q.Get("_texttotime"); v != "" {
|
||||
onoff, err := strconv.ParseBool(v)
|
||||
if err != nil {
|
||||
return fmt.Errorf("unknown _texttotime %q, must be 1, t, T, TRUE, true, True, 0, f, F, FALSE, false, False",
|
||||
v)
|
||||
}
|
||||
c.textToTime = onoff
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -881,3 +898,25 @@ func Limit(c *sql.Conn, id int, newVal int) (r int, err error) {
|
||||
return r, err
|
||||
|
||||
}
|
||||
|
||||
// ColumnInfo describes one output column of a prepared SQL statement.
|
||||
//
|
||||
// See https://www.sqlite.org/c3ref/column_database_name.html for more details.
|
||||
type ColumnInfo struct {
|
||||
// Name is the column's name, from sqlite3_column_name.
|
||||
Name string
|
||||
// DeclType is the declared column type, from sqlite3_column_decltype.
|
||||
DeclType string
|
||||
// DatabaseName is the name of the source database, from sqlite3_column_database_name.
|
||||
// Empty if the column does not resolve to an unambiguous reference to a single database column,
|
||||
// such as expressions, function calls, or constants.
|
||||
DatabaseName string
|
||||
// TableName is the name of the source table, from sqlite3_column_table_name.
|
||||
// Empty if the column does not resolve to an unambiguous reference to a single database column,
|
||||
// such as expressions, function calls, or constants.
|
||||
TableName string
|
||||
// OriginName is the name of the source column name, from sqlite3_column_origin_name.
|
||||
// Empty if the column does not resolve to an unambiguous reference to a single database column,
|
||||
// such as expressions, function calls, or constants.
|
||||
OriginName string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user