Skip to content

Commit

Permalink
Add comments and fix linter problems
Browse files Browse the repository at this point in the history
  • Loading branch information
mkgrgis committed Apr 24, 2024
1 parent f92ee42 commit 1704f0d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion GitHubActions/detect_targets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

################################################################################
#
# This script detects target PostgreSQL versions for sqlite_fdw testing from
# This script detects target PostgreSQL versions for sqlite_fdw testing from
# directory names in ./sql directory. Detected versions will be outputed to
# the standard output as an array of string like ["15.4","16.0"].
#
Expand Down
2 changes: 1 addition & 1 deletion GitHubActions/install_locales.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# tests in Ubuntu.
#
# Usage: ./install_locales.sh
#
#
# Requirements:
# - having superuser privileges
#
Expand Down
6 changes: 6 additions & 0 deletions sqlite_fdw--1.0--1.1.sql
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ RETURNS bool
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT PARALLEL RESTRICTED;

COMMENT ON FUNCTION sqlite_fdw_disconnect(text)
IS 'closes a SQLite connection by name of FOREIGN SERVER';

CREATE FUNCTION sqlite_fdw_disconnect_all ()
RETURNS bool
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT PARALLEL RESTRICTED;

COMMENT ON FUNCTION sqlite_fdw_disconnect_all()
IS 'closes all opened SQLite connections';
9 changes: 9 additions & 0 deletions sqlite_fdw--1.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,24 @@ RETURNS fdw_handler
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT;

COMMENT ON FUNCTION sqlite_fdw_handler()
IS 'SQLite foreign data wrapper handler';

CREATE FUNCTION sqlite_fdw_validator(text[], oid)
RETURNS void
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT;

COMMENT ON FUNCTION sqlite_fdw_validator(text[], oid)
IS 'SQLite foreign data wrapper options validator';

CREATE FOREIGN DATA WRAPPER sqlite_fdw
HANDLER sqlite_fdw_handler
VALIDATOR sqlite_fdw_validator;

COMMENT ON FOREIGN DATA WRAPPER sqlite_fdw
IS 'SQLite foreign data wrapper';

CREATE OR REPLACE FUNCTION sqlite_fdw_version()
RETURNS pg_catalog.int4 STRICT
AS 'MODULE_PATHNAME' LANGUAGE C;

0 comments on commit 1704f0d

Please sign in to comment.