pglite_fusion
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
pglite_fusion | 0.0.6 | TYPE | MIT | Rust |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 3590 | pglite_fusion | No | Yes | Yes | Yes | No | No | - |
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 0.0.6 | 1817161514 | pglite_fusion | - |
| RPM | PIGSTY | 0.0.6 | 1817161514 | pglite_fusion_$v | - |
| DEB | PIGSTY | 0.0.6 | 1817161514 | postgresql-$v-pglite-fusion | - |
Build
You can build the RPM / DEB packages for pglite_fusion using pig build:
Install
You can install pglite_fusion directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Preload:
Create Extension:
Usage
https://github.com/frectonz/pglite-fusion/blob/main/README.md
Here’s some demo usage.
API Doc
empty_sqlite
Creates an empty SQLite database and returns it as a binary object. This can be used to initialize an empty SQLite database in a PostgreSQL column.
Example Usage:
query_sqlite
Executes a SQL query on a SQLite database stored as a binary object and returns the result as a table of JSON-encoded rows. This function is useful for querying SQLite databases stored in PostgreSQL columns.
Parameters:
sqlite: The SQLite database to query, stored as a binary object.query: The SQL query string to execute on the SQLite database.
Example Usage:
execute_sqlite
Executes a SQL statement (such as INSERT, UPDATE, or DELETE) on a SQLite database stored as a binary object. The updated SQLite database is returned as a binary object, allowing further operations on it.
Parameters:
sqlite: The SQLite database to execute the SQL query on, stored as a binary object.query: The SQL statement to execute on the SQLite database.
Example Usage:
init_sqlite
Creates an SQLite database with an initialization query already applied on it. This can be used to initialize a SQLite database with the expected tables already created.
Parameters:
query: The SQL statement to execute on the SQLite database.
Example Usage:
get_sqlite_text
Extracts a text value from a specific column in a row returned by query_sqlite. Use this function to retrieve text values from query results.
Parameters:
sqlite_row: A row from the results ofquery_sqlite.index: The index of the column to extract from the row.
Example Usage:
get_sqlite_integer
Extracts an integer value from a specific column in a row returned by query_sqlite. Use this function to retrieve integer values from query results.
Parameters:
sqlite_row: A row from the results ofquery_sqlite.index: The index of the column to extract from the row.
Example Usage:
get_sqlite_real
Extracts a real (floating-point) value from a specific column in a row returned by query_sqlite. Use this function to retrieve real number values from query results.
Parameters:
sqlite_row: A row from the results ofquery_sqlite.index: The index of the column to extract from the row.
Example Usage:
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)