pglite_fusion
pglite_fusion : Embed an SQLite database in your PostgreSQL table
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 3590 | pglite_fusion | pglite_fusion | 0.0.6 |
TYPE | MIT | Rust |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --sLd-- | No | Yes | Yes | Yes | no | no |
| Relationships | |
|---|---|
| See Also | sqlite_fdw omni_sqlite duckdb_fdw pg_duckdb pg_clickhouse |
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | PIGSTY | 0.0.6 |
18 17 16 15 14 | pglite_fusion |
- |
| RPM | PIGSTY | 0.0.6 |
18 17 16 15 14 | pglite_fusion_$v |
- |
| DEB | PIGSTY | 0.0.6 |
18 17 16 15 14 | postgresql-$v-pglite-fusion |
- |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 |
| el8.aarch64 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 |
| el9.x86_64 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 |
| el9.aarch64 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 |
| el10.x86_64 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 |
| el10.aarch64 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 |
| d12.x86_64 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 |
| d12.aarch64 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 |
| d13.x86_64 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 |
| d13.aarch64 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 |
| u22.x86_64 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 |
| u22.aarch64 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 |
| u24.x86_64 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 |
| u24.aarch64 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 |
| u26.x86_64 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 |
| u26.aarch64 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 | PIGSTY 0.0.6 |
Source
github.com/frectonz/pglite-fusion
pglite-fusion-0.0.6.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Config this extension to shared_preload_libraries:
Create this extension with:
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.