Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bluejekyll/pg-extend-rs
/ functions
Functions
165 in github.com/bluejekyll/pg-extend-rs
⨍
Functions
165
◇
Types & classes
25
↓ 20 callers
Function
test_in_db
(lib_name: &str, test: F)
integration-tests/src/lib.rs:197
↓ 15 callers
Method
as_ptr
Returns a pointer to the inner type
pg-extend/src/pg_alloc.rs:125
↓ 9 callers
Function
guard_pg
(f: F)
pg-extend/src/lib.rs:165
↓ 7 callers
Method
is_null
Return true if this Datum is None # Notes This must not panic, this is called directly at the FFI boundary with Postgres, if it panics it will cause
pg-extend/src/pg_datum.rs:55
↓ 6 callers
Method
len
Return the length of the text data
pg-extend/src/native/text.rs:48
↓ 6 callers
Function
strip_type
(ty: &mut syn::Type)
pg-extern-attr/src/lifetime.rs:92
↓ 4 callers
Function
lifetime_to_anon
(lifetime: &mut syn::Lifetime)
pg-extern-attr/src/lifetime.rs:8
↓ 3 callers
Function
check_for_pg_allocator
Check if the argument is the PgAllocator (aka MemoryContext)
pg-extern-attr/src/lib.rs:68
↓ 3 callers
Function
get_cache
()
examples/fdw-rw/src/lib.rs:24
↓ 3 callers
Method
insert
Method for INSERTs. Takes in new_row (which is a mapping of column names to values). Returns the inserted row, or None if no insert occurred.
pg-extend/src/pg_fdw.rs:88
↓ 2 callers
Method
as_slice
(&self)
pg-extend/src/native/varlena.rs:82
↓ 2 callers
Function
db_conn
()
integration-tests/src/lib.rs:119
↓ 2 callers
Method
drain
Returns the current message buffer and flushes it.
integration-tests/tests/logging.rs:37
↓ 2 callers
Method
exec_with_guard
Same as exec, but additionally wraps in with pg_guard # Safety This has the same safety requirements as `guard_pg`
pg-extend/src/pg_alloc.rs:62
↓ 2 callers
Function
get_info_fn
(func_name: &syn::Ident)
pg-extern-attr/src/lib.rs:278
↓ 2 callers
Method
into_raw
(self)
pg-extend/src/pg_alloc.rs:197
↓ 2 callers
Method
is_empty
Return true if this is empty
pg-extend/src/native/text.rs:43
↓ 2 callers
Function
sl_path
(path: &mut syn::Path)
pg-extern-attr/src/lifetime.rs:52
↓ 2 callers
Function
strip_return_type
(return_type: &mut syn::ReturnType)
pg-extern-attr/src/lifetime.rs:84
↓ 1 callers
Function
build_bin
(name: &str)
integration-tests/src/lib.rs:63
↓ 1 callers
Function
build_lib
(name: &str)
integration-tests/src/lib.rs:26
↓ 1 callers
Function
create_function_params
(num_args: usize, has_pg_allocator: HasPgAllocatorArg)
pg-extern-attr/src/lib.rs:29
↓ 1 callers
Method
dealloc
(&self, pg_data: *mut T)
pg-extend/src/pg_alloc.rs:68
↓ 1 callers
Method
delete
Method for DELETEs. Takes in a indices is the same, which consists of columns specified by index_columns. Returns the deleted row, or None if no row w
pg-extend/src/pg_fdw.rs:96
↓ 1 callers
Method
exec
Sets this PgAllocator as the current memory context, and then resets it to the previous after executing the function.
pg-extend/src/pg_alloc.rs:36
↓ 1 callers
Function
extract_arg_data
Returns a token stream of all the argument data extracted from the SQL function parameters PgDatums, and converts them to the arg list for the Rust fu
pg-extern-attr/src/lib.rs:93
↓ 1 callers
Function
get_arg_types
(inputs: &Punctuated<syn::FnArg, Comma>)
pg-extern-attr/src/lib.rs:48
↓ 1 callers
Function
get_bindings
(pg_include: &str)
pg-extend/build.rs:69
↓ 1 callers
Function
get_lib_path
(result: &Compilation, name: &str)
integration-tests/src/lib.rs:100
↓ 1 callers
Function
get_postgres_feature_version
(pg_include: String)
pg-extend/build.rs:185
↓ 1 callers
Function
get_stmt_bin_path
(result: &Compilation)
integration-tests/src/lib.rs:114
↓ 1 callers
Function
impl_info_for_fdw
(item: &syn::Item)
pg-extern-attr/src/lib.rs:223
↓ 1 callers
Function
impl_info_for_fn
(item: &syn::Item)
pg-extern-attr/src/lib.rs:291
↓ 1 callers
Function
include_dir
(pg_config: &str)
pg-extend/build.rs:163
↓ 1 callers
Method
insert
(&self, new_row: &Tuple)
examples/fdw-rw/src/lib.rs:128
↓ 1 callers
Method
into_datum
Turn this into an actual foreign data wrapper object. Postgres creates fdws by having a function return a special fdw_routine object, which is what th
pg-extend/src/pg_fdw.rs:597
↓ 1 callers
Method
into_ptr
(mut self)
pg-extend/src/native/text.rs:29
↓ 1 callers
Method
len
(&self)
pg-extend/src/native/varlena.rs:61
↓ 1 callers
Method
next
(&mut self)
examples/fdw/src/lib.rs:47
↓ 1 callers
Function
run_create_stmts
(bin_path: &PathBuf, lib_path: &PathBuf)
integration-tests/src/lib.rs:139
↓ 1 callers
Function
sl_generic_argument
(args: &mut syn::GenericArgument)
pg-extern-attr/src/lifetime.rs:37
↓ 1 callers
Function
sl_lifetime_def
(lifetime_def: &mut syn::LifetimeDef)
pg-extern-attr/src/lifetime.rs:13
↓ 1 callers
Function
sl_type_param_bound
(bound: &mut syn::TypeParamBound)
pg-extern-attr/src/lifetime.rs:21
↓ 1 callers
Function
sl_type_path
(type_path: &mut syn::TypePath)
pg-extern-attr/src/lifetime.rs:76
↓ 1 callers
Function
sql_function_options
Returns Rust code to figure out if the function takes optional arguments. Functions with non-optional arguments will be declared with the STRICT optio
pg-extern-attr/src/lib.rs:191
↓ 1 callers
Function
sql_param_list
(num_args: usize)
pg-extern-attr/src/lib.rs:123
↓ 1 callers
Function
sql_param_types
Returns a token stream for the function that creates the function # Return The TokenStream of all the args, and a boolean if the first arg is the Pg
pg-extern-attr/src/lib.rs:147
↓ 1 callers
Function
sql_return_type
(outputs: &syn::ReturnType)
pg-extern-attr/src/lib.rs:174
↓ 1 callers
Method
take_ptr
(&mut self)
pg-extend/src/pg_alloc.rs:116
↓ 1 callers
Method
update
(&self, new_row: &Tuple, indices: &Tuple)
examples/fdw-rw/src/lib.rs:105
↓ 1 callers
Method
update
Method for UPDATEs. Takes in a new_row (which is a mapping of column names to values). indices is the same, but will always include columns specified
pg-extend/src/pg_fdw.rs:76
Function
__private_api_log
( args: fmt::Arguments, level: Level, &(module_path, file, line): &(*const c_char, *const c_char,
pg-extend/src/log.rs:210
Function
add_big_one
(value: i64)
examples/adding/src/lib.rs:31
Method
add_foreign_update_targets
( parsetree: *mut pg_sys::Query, _target_rte: *mut pg_sys::RangeTblEntry, target_relat
pg-extend/src/pg_fdw.rs:406
Function
add_one
(value: i32)
examples/adding/src/lib.rs:19
Function
add_small_one
(value: i16)
examples/adding/src/lib.rs:25
Function
add_together
(v1: i64, v2: i32, v3: i16)
examples/adding/src/lib.rs:37
Function
allocate
(_memory_context: &PgAllocator)
examples/memory_context/src/lib.rs:19
Method
as_str
Return the string representation of this type
pg-extend/src/pg_type.rs:94
Method
begin
(_table_metadata: &ForeignTableMetadata)
examples/fdw/src/lib.rs:58
Method
begin
(_table_metadata: &ForeignTableMetadata)
examples/fdw-rw/src/lib.rs:77
Method
begin_foreign_modify
( _mstate: *mut pg_sys::ModifyTableState, rinfo: *mut pg_sys::ResultRelInfo, _fdw_priv
pg-extend/src/pg_fdw.rs:460
Method
begin_foreign_scan
called during executor startup. perform any initialization needed, but not start the actual scan.
pg-extend/src/pg_fdw.rs:195
Function
concat_rs
(mut a: String, b: String)
examples/strings/src/lib.rs:22
Function
copy_to_tempdir
(path: &Path, lib_path: PathBuf)
integration-tests/src/lib.rs:176
Method
current_context
Establishes a PgAllocator from the current default context.
pg-extend/src/pg_alloc.rs:30
Method
delete
(&self, indices: &Tuple)
examples/fdw-rw/src/lib.rs:133
Method
deref
(&self)
pg-extend/src/pg_alloc.rs:136
Method
deref
(&self)
pg-extend/src/native/text.rs:86
Method
deref_mut
(&mut self)
pg-extend/src/pg_alloc.rs:145
Method
detoasted
(datum: Datum)
pg-extend/src/pg_datum.rs:374
Method
drop
(&mut self)
pg-extend/src/pg_alloc.rs:155
Method
drop
(&mut self)
pg-extend/src/pg_datum.rs:396
Method
end_foreign_scan
End the scan and release resources.
pg-extend/src/pg_fdw.rs:404
Method
exec_foreign_delete
( _estate: *mut pg_sys::EState, rinfo: *mut pg_sys::ResultRelInfo, slot: *mut pg_sys::
pg-extend/src/pg_fdw.rs:503
Method
exec_foreign_insert
( _estate: *mut pg_sys::EState, rinfo: *mut pg_sys::ResultRelInfo, slot: *mut pg_sys::
pg-extend/src/pg_fdw.rs:533
Method
exec_foreign_update
( _estate: *mut pg_sys::EState, rinfo: *mut pg_sys::ResultRelInfo, slot: *mut pg_sys::
pg-extend/src/pg_fdw.rs:476
Method
from
(b: Bool)
pg-extend/src/pg_bool.rs:33
Method
from
(value: i16)
pg-extend/src/pg_datum.rs:104
Method
from
(level: Level)
pg-extend/src/log.rs:101
Method
from
(level: Level)
pg-extend/src/pg_error.rs:60
Method
from_cstring
Allocate a new Text data from the CString using the PgAllocator for the Postgres MemoryContext
pg-extend/src/native/text.rs:34
Method
from_option
( _memory_context: &'mc PgAllocator, datum: Option<Datum>, )
pg-extend/src/pg_datum.rs:42
Method
from_raw
Instantiate a PgAllocator from the raw pointer.
pg-extend/src/pg_alloc.rs:25
Method
from_raw
( _memory_context: &'mc PgAllocator, datum: Datum, is_null: B, )
pg-extend/src/pg_datum.rs:30
Method
from_raw
(alloc: &'mc PgAllocator, text_ptr: *mut pg_sys::text)
pg-extend/src/native/text.rs:23
Method
from_rust
Return the PgType of the parameter's type
pg-extend/src/pg_type.rs:89
Method
from_varlena
See postgres.h
pg-extend/src/native/varlena.rs:27
Function
get_args
Returns an iterator of argument Datums
pg-extend/src/lib.rs:69
Function
get_features
()
integration-tests/src/lib.rs:15
Method
get_field
( &self, _name: &str, _typ: pg_type::PgType, _opts: OptionMap, )
examples/fdw/src/lib.rs:35
Method
get_field
( &self, name: &str, _typ: pg_type::PgType, _opts: OptionMap, )
examples/fdw-rw/src/lib.rs:49
Method
get_field
( _memory_context: &'mc PgAllocator, attr: &pg_sys::FormData_pg_attribute, row: &'mc d
pg-extend/src/pg_fdw.rs:276
Method
get_foreign_paths
create access path for a scan on the foreign table
pg-extend/src/pg_fdw.rs:141
Method
get_foreign_plan
create a ForeignScan plan node
pg-extend/src/pg_fdw.rs:170
Method
get_foreign_rel_size
set relation size estimates for a foreign table
pg-extend/src/pg_fdw.rs:132
Function
get_null
()
examples/nullable/src/lib.rs:19
Method
get_options
WARNING: this function expects a `List` from either `ForeignTable::options` or `ForeignServer::options`. Do not use for anything else as it assumes th
pg-extend/src/pg_fdw.rs:246
Method
get_table_metadata
TODO: We need a way to cache the resulting metadata to reduce the cost of this function
pg-extend/src/pg_fdw.rs:220
Method
import_foreign_schema
( stmt: *mut pg_sys::ImportForeignSchemaStmt, _server_oid: pg_sys::Oid, )
pg-extend/src/pg_fdw.rs:560
next →
1–100 of 165, ranked by callers