mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
postgres: Add postgres statement rewriting support
Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
committed by
Rusty Russell
parent
5953a5051c
commit
bf613fa48a
@@ -10,8 +10,12 @@ class Sqlite3Rewriter(object):
|
||||
return query
|
||||
|
||||
|
||||
class PostgresRewriter(Sqlite3Rewriter):
|
||||
pass
|
||||
|
||||
rewriters = {
|
||||
"sqlite3": Sqlite3Rewriter(),
|
||||
"postgres": PostgresRewriter(),
|
||||
}
|
||||
|
||||
template = Template("""#ifndef LIGHTNINGD_WALLET_GEN_DB_${f.upper()}
|
||||
|
||||
Reference in New Issue
Block a user