package
0.0.0-20250223041245-e3286369638c
Repository: https://github.com/megur0/simple-sql.git
Documentation: pkg.go.dev

# Functions

"Seq Scan"のSQLが存在する場合はただちにpanicで処理を止めて出力。.
No description provided by the author
No description provided by the author
取得したレコードを構造体へ格納してリストとして返す 1件もデータが存在しない場合は空の配列を返す。 エラーの場合はnilとerrorを返す。.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
トランザクションを生成して、受け取った無名関数へそのトランザクションを渡して実行する。 エラーもpanicも発生せずに実行された場合は、トランザクションをコミットする。 無名関数の中でpanicが発生した場合はロールバックを実行する。 無名関数がerrorを返した場合はロールバックを実行した上でそのerrorを返す。 この関数がerrorを返す場合は、それは無名関数が返したerrorとなる。 (この関数自体の処理によって発生するエラーは無く、それらは全てpanicとなる) 今のところトランザクションのネストは想定していないので、txの引数は取っていない。.

# Constants

WHEREのチェックを個別に外したい場合は、以下のようにする。 WHERE 'where check disable'='where check disable' AND (以降条件文).
No description provided by the author
No description provided by the author
Seq Scanのチェックを個別に外したい場合は、以下のようにする。 WHERE 'seq scan check disable'='seq scan check disable' AND (以降条件文).

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
FOR SELECTやFOR UPDATEの際はNOWAITが付与されている事を矯正する.
UPDATE文の際は"updated_at"が含まれている事を強制する.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
デバッグモードの際にSQLのExpalinをチェックして"Seq Scan"を含む場合にpanicとさせる。 これを利用することでインデックスの設定漏れを回避できる。.
デバッグモードの際にWHEREが含まれない検索をpanicとさせる。 これによってデータの全検索を回避する。.

# Structs

注: これ以上ネストされた結果の場合は情報をロストする。.

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author