-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
baecefd
commit 281a4c0
Showing
7 changed files
with
125 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,39 @@ | ||
name: Sqlite | ||
version: '1.2.4' | ||
description: Plugin to select and insert into and sqlite3 database | ||
version: '1.3.0' | ||
description: Plugin to select, update and insert into an sqlite3 database | ||
icon: database | ||
author: | ||
name: Richard N Hainsworth | ||
email: rnhainsworth@gmail.com | ||
name: Richard N Hainsworth | ||
email: rnhainsworth@gmail.com | ||
homepage: https://github.com/finanalyst/grav-plugin-sqlite | ||
bugs: https://github.com/finanalyst/grav-plugin-sqlite/issues | ||
keywords: [sqlite, grav, plugin] | ||
readme: https://github.com/finanalyst/grav-plugin-sqlite/README.md | ||
license: MIT | ||
|
||
dependencies: | ||
- shortcode-core | ||
- shortcode-core | ||
|
||
form: | ||
fields: | ||
database_name: | ||
type: text | ||
default: db.sqlite3 | ||
label: PLUGIN_SQLITE.DATABASE_NAME | ||
help: PLUGIN_SQLITE.DATABASE_NAME_HELP | ||
database_route: | ||
type: text | ||
default: data | ||
label: PLUGIN_SQLITE.DATABASE_ROUTE | ||
help: PLUGIN_SQLITE.DATABASE_ROUTE_HELP | ||
fields: | ||
database_name: | ||
type: text | ||
default: db.sqlite3 | ||
label: PLUGIN_SQLITE.DATABASE_NAME | ||
help: PLUGIN_SQLITE.DATABASE_NAME_HELP | ||
database_route: | ||
type: text | ||
default: data | ||
label: PLUGIN_SQLITE.DATABASE_ROUTE | ||
help: PLUGIN_SQLITE.DATABASE_ROUTE_HELP | ||
error_logging: | ||
type: toggle | ||
highlight: 0 | ||
default: 0 | ||
options: | ||
1: Enabled | ||
0: Disabled | ||
validate: | ||
type: bool | ||
label: PLUGIN_SQLITE.ERROR_LOGGING | ||
help: PLUGIN_SQLITE.ERROR_LOGGING_HELP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
en: | ||
PLUGIN_SQLITE: | ||
DATABASE_ERROR: The database file "%s" does not exist. | ||
UNIQUE_FIELD_ERROR: <br>One (or more) of the fields is required to be UNIQUE, but it already exists in the database.<br>Is the same data being added again? | ||
OTHER_SQL_ERROR: <br>The form data is causing a database error. Contact the site developer. | ||
DATABASE_NAME: Name of database | ||
DATABASE_NAME_HELP: The name of the sqlite3 file with extention | ||
DATABASE_ROUTE: Route to database | ||
DATABASE_ROUTE_HELP: The GRAV route to the database (relative to the 'user' directory) | ||
DATABASE_ERROR_TITLE: Database Error | ||
FILE_ERROR_1: The file %s%s%s does not exist. Check that: | ||
FILE_ERROR_2: the database file exists in the correct location, | ||
FILE_ERROR_3: the %slocation%s and %sfilename%s are correct in the sqlite plugin configuration file. | ||
SQL_ERROR_1: SQL Error | ||
SQL_ERROR_2: The SQL statement between the shortcode, viz. | ||
SQL_ERROR_3: generates the error. | ||
UPDATE_WHERE: A where expression is mandatory (either as a parameter or as a form field) when using an "sql-update" Form action. | ||
UPDATE_ERROR: The following UPDATE error was generated:<BR>%s | ||
PLUGIN_SQLITE: | ||
DATABASE_ERROR: The database file "%s" does not exist. | ||
UNIQUE_FIELD_ERROR: <br>One (or more) of the fields is required to be UNIQUE, but it already exists in the database.<br>Is the same data being added again? | ||
OTHER_SQL_ERROR: <br>The form data is causing a database error. Contact the site developer. | ||
DATABASE_NAME: Name of database | ||
DATABASE_NAME_HELP: The name of the sqlite3 file with extention | ||
DATABASE_ROUTE: Route to database | ||
DATABASE_ROUTE_HELP: The GRAV route to the database (relative to the 'user' directory) | ||
DATABASE_ERROR_TITLE: Database Error | ||
FILE_ERROR_1: The file %s%s%s does not exist. Check that: | ||
FILE_ERROR_2: the database file exists in the correct location, | ||
FILE_ERROR_3: the %slocation%s and %sfilename%s are correct in the sqlite plugin configuration file. | ||
SQL_ERROR_1: SQL Error | ||
SQL_ERROR_2: The SQL statement between the shortcode, viz. | ||
SQL_ERROR_3: generates the error. | ||
UPDATE_WHERE: A where expression is mandatory (either as a parameter or as a form field) when using an "sql-update" Form action. | ||
UPDATE_ERROR: The following UPDATE error was generated:<BR>%s | ||
ERROR_LOGGING: Turn on Logging. (Not for production!!) | ||
ERROR_LOGGING_HELP: Log file is saved when an error is detected in DATABASE_ROUTE, or /user/data if former fails. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
enabled: true | ||
database_route: data | ||
database_name: db.sqlite3 | ||
error_logging: false |