Old implementations of [[metabase.driver.sql-jdbc.execute]] methods. All methods and functions in this namespace should be considered deprecated and will be removed in future releases. | (ns metabase.driver.sql-jdbc.execute.old-impl (:require [metabase.driver :as driver])) |
(set! *warn-on-reflection* true) | |
Deprecated in Metabase 47. Implement [[metabase.driver.sql-jdbc.execute/do-with-connection-with-options]] instead. This method will be removed in or after Metabase 50. | (defmulti connection-with-timezone {:added "0.35.0", :deprecated "0.47.0", :arglists '(^java.sql.Connection [driver database ^String timezone-id])} driver/dispatch-on-initialized-driver :hierarchy #'driver/hierarchy) |
Return a format string containing a SQL statement to be used to set the timezone for the current transaction.
The "SET @@session.time_zone = %s;" This method is only called for drivers using the default implementation of [[metabase.driver.sql-jdbc.execute/do-with-connection-with-options]]; it should be considered deprecated in favor of implementing [[metabase.driver.sql-jdbc.execute/do-with-connection-with-options]] directly. | (defmulti set-timezone-sql {:added "0.35.0", :deprecated "0.35.0", :arglists '([driver])} driver/dispatch-on-initialized-driver :hierarchy #'driver/hierarchy) |
(defmethod set-timezone-sql :sql-jdbc [_] nil) | |