From: Michael Olbrich <mol@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Bruno Thomsen <bruno.thomsen@gmail.com>
Subject: Re: [ptxdist] [APPLIED] sqlite: config: enable foreign keys by default
Date: Tue, 04 Aug 2020 09:23:24 +0200 [thread overview]
Message-ID: <E1k2rIC-0003KC-IG@dude02.hi.pengutronix.de> (raw)
In-Reply-To: <20200716172913.6053-1-bruno.thomsen@gmail.com>
Thanks, applied as b550c0d4eea7aca5453d3ead7247557b0c96a014.
Michael
[sent from post-receive hook]
On Tue, 04 Aug 2020 09:23:24 +0200, Bruno Thomsen <bruno.thomsen@gmail.com> wrote:
> Support for foreign_keys pragma is already enabled at compile
> time. This allows turning on the feature by default on new
> database connections.
>
> Signed-off-by: Bruno Thomsen <bruno.thomsen@gmail.com>
> Message-Id: <20200716172913.6053-1-bruno.thomsen@gmail.com>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
>
> diff --git a/rules/sqlite.in b/rules/sqlite.in
> index 7b60edf3e772..e6e01ba97d6d 100644
> --- a/rules/sqlite.in
> +++ b/rules/sqlite.in
> @@ -30,6 +30,14 @@ config SQLITE_READLINE
> help
> Enable readline support
>
> +config SQLITE_FOREIGN_KEYS
> + bool
> + prompt "enable foreign keys by default"
> + help
> + Enable foreign keys support by default on database
> + connections. This ensures database schema constrains
> + are enforced by default e.g. consistency between tables.
> +
> comment "install options"
>
> config SQLITE_TOOL
> diff --git a/rules/sqlite.make b/rules/sqlite.make
> index b23c2d377767..67a66a3718f1 100644
> --- a/rules/sqlite.make
> +++ b/rules/sqlite.make
> @@ -45,6 +45,7 @@ SQLITE_CONF_ENV := \
> -DSQLITE_ENABLE_COLUMN_METADATA=1 \
> -DSQLITE_ENABLE_FTS3_PARENTHESIS=1 \
> -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 \
> + -DSQLITE_DEFAULT_FOREIGN_KEYS=$(call ptx/ifdef, PTXCONF_SQLITE_FOREIGN_KEYS,1,0) \
> -DSQLITE_SOUNDEX=1 \
> "
>
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
prev parent reply other threads:[~2020-08-04 7:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-16 17:29 [ptxdist] [PATCH v2] " Bruno Thomsen
2020-08-04 7:23 ` Michael Olbrich [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1k2rIC-0003KC-IG@dude02.hi.pengutronix.de \
--to=mol@pengutronix.de \
--cc=bruno.thomsen@gmail.com \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox