MCPcopy Create free account

hub / github.com/bluejekyll/pg-extend-rs / functions

Functions165 in github.com/bluejekyll/pg-extend-rs

↓ 20 callersFunctiontest_in_db
(lib_name: &str, test: F)
integration-tests/src/lib.rs:197
↓ 15 callersMethodas_ptr
Returns a pointer to the inner type
pg-extend/src/pg_alloc.rs:125
↓ 9 callersFunctionguard_pg
(f: F)
pg-extend/src/lib.rs:165
↓ 7 callersMethodis_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 callersMethodlen
Return the length of the text data
pg-extend/src/native/text.rs:48
↓ 6 callersFunctionstrip_type
(ty: &mut syn::Type)
pg-extern-attr/src/lifetime.rs:92
↓ 4 callersFunctionlifetime_to_anon
(lifetime: &mut syn::Lifetime)
pg-extern-attr/src/lifetime.rs:8
↓ 3 callersFunctioncheck_for_pg_allocator
Check if the argument is the PgAllocator (aka MemoryContext)
pg-extern-attr/src/lib.rs:68
↓ 3 callersFunctionget_cache
()
examples/fdw-rw/src/lib.rs:24
↓ 3 callersMethodinsert
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 callersMethodas_slice
(&self)
pg-extend/src/native/varlena.rs:82
↓ 2 callersFunctiondb_conn
()
integration-tests/src/lib.rs:119
↓ 2 callersMethoddrain
Returns the current message buffer and flushes it.
integration-tests/tests/logging.rs:37
↓ 2 callersMethodexec_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 callersFunctionget_info_fn
(func_name: &syn::Ident)
pg-extern-attr/src/lib.rs:278
↓ 2 callersMethodinto_raw
(self)
pg-extend/src/pg_alloc.rs:197
↓ 2 callersMethodis_empty
Return true if this is empty
pg-extend/src/native/text.rs:43
↓ 2 callersFunctionsl_path
(path: &mut syn::Path)
pg-extern-attr/src/lifetime.rs:52
↓ 2 callersFunctionstrip_return_type
(return_type: &mut syn::ReturnType)
pg-extern-attr/src/lifetime.rs:84
↓ 1 callersFunctionbuild_bin
(name: &str)
integration-tests/src/lib.rs:63
↓ 1 callersFunctionbuild_lib
(name: &str)
integration-tests/src/lib.rs:26
↓ 1 callersFunctioncreate_function_params
(num_args: usize, has_pg_allocator: HasPgAllocatorArg)
pg-extern-attr/src/lib.rs:29
↓ 1 callersMethoddealloc
(&self, pg_data: *mut T)
pg-extend/src/pg_alloc.rs:68
↓ 1 callersMethoddelete
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 callersMethodexec
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 callersFunctionextract_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 callersFunctionget_arg_types
(inputs: &Punctuated<syn::FnArg, Comma>)
pg-extern-attr/src/lib.rs:48
↓ 1 callersFunctionget_bindings
(pg_include: &str)
pg-extend/build.rs:69
↓ 1 callersFunctionget_lib_path
(result: &Compilation, name: &str)
integration-tests/src/lib.rs:100
↓ 1 callersFunctionget_postgres_feature_version
(pg_include: String)
pg-extend/build.rs:185
↓ 1 callersFunctionget_stmt_bin_path
(result: &Compilation)
integration-tests/src/lib.rs:114
↓ 1 callersFunctionimpl_info_for_fdw
(item: &syn::Item)
pg-extern-attr/src/lib.rs:223
↓ 1 callersFunctionimpl_info_for_fn
(item: &syn::Item)
pg-extern-attr/src/lib.rs:291
↓ 1 callersFunctioninclude_dir
(pg_config: &str)
pg-extend/build.rs:163
↓ 1 callersMethodinsert
(&self, new_row: &Tuple)
examples/fdw-rw/src/lib.rs:128
↓ 1 callersMethodinto_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 callersMethodinto_ptr
(mut self)
pg-extend/src/native/text.rs:29
↓ 1 callersMethodlen
(&self)
pg-extend/src/native/varlena.rs:61
↓ 1 callersMethodnext
(&mut self)
examples/fdw/src/lib.rs:47
↓ 1 callersFunctionrun_create_stmts
(bin_path: &PathBuf, lib_path: &PathBuf)
integration-tests/src/lib.rs:139
↓ 1 callersFunctionsl_generic_argument
(args: &mut syn::GenericArgument)
pg-extern-attr/src/lifetime.rs:37
↓ 1 callersFunctionsl_lifetime_def
(lifetime_def: &mut syn::LifetimeDef)
pg-extern-attr/src/lifetime.rs:13
↓ 1 callersFunctionsl_type_param_bound
(bound: &mut syn::TypeParamBound)
pg-extern-attr/src/lifetime.rs:21
↓ 1 callersFunctionsl_type_path
(type_path: &mut syn::TypePath)
pg-extern-attr/src/lifetime.rs:76
↓ 1 callersFunctionsql_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 callersFunctionsql_param_list
(num_args: usize)
pg-extern-attr/src/lib.rs:123
↓ 1 callersFunctionsql_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 callersFunctionsql_return_type
(outputs: &syn::ReturnType)
pg-extern-attr/src/lib.rs:174
↓ 1 callersMethodtake_ptr
(&mut self)
pg-extend/src/pg_alloc.rs:116
↓ 1 callersMethodupdate
(&self, new_row: &Tuple, indices: &Tuple)
examples/fdw-rw/src/lib.rs:105
↓ 1 callersMethodupdate
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
Functionadd_big_one
(value: i64)
examples/adding/src/lib.rs:31
Methodadd_foreign_update_targets
( parsetree: *mut pg_sys::Query, _target_rte: *mut pg_sys::RangeTblEntry, target_relat
pg-extend/src/pg_fdw.rs:406
Functionadd_one
(value: i32)
examples/adding/src/lib.rs:19
Functionadd_small_one
(value: i16)
examples/adding/src/lib.rs:25
Functionadd_together
(v1: i64, v2: i32, v3: i16)
examples/adding/src/lib.rs:37
Functionallocate
(_memory_context: &PgAllocator)
examples/memory_context/src/lib.rs:19
Methodas_str
Return the string representation of this type
pg-extend/src/pg_type.rs:94
Methodbegin
(_table_metadata: &ForeignTableMetadata)
examples/fdw/src/lib.rs:58
Methodbegin
(_table_metadata: &ForeignTableMetadata)
examples/fdw-rw/src/lib.rs:77
Methodbegin_foreign_modify
( _mstate: *mut pg_sys::ModifyTableState, rinfo: *mut pg_sys::ResultRelInfo, _fdw_priv
pg-extend/src/pg_fdw.rs:460
Methodbegin_foreign_scan
called during executor startup. perform any initialization needed, but not start the actual scan.
pg-extend/src/pg_fdw.rs:195
Functionconcat_rs
(mut a: String, b: String)
examples/strings/src/lib.rs:22
Functioncopy_to_tempdir
(path: &Path, lib_path: PathBuf)
integration-tests/src/lib.rs:176
Methodcurrent_context
Establishes a PgAllocator from the current default context.
pg-extend/src/pg_alloc.rs:30
Methoddelete
(&self, indices: &Tuple)
examples/fdw-rw/src/lib.rs:133
Methodderef
(&self)
pg-extend/src/pg_alloc.rs:136
Methodderef
(&self)
pg-extend/src/native/text.rs:86
Methodderef_mut
(&mut self)
pg-extend/src/pg_alloc.rs:145
Methoddetoasted
(datum: Datum)
pg-extend/src/pg_datum.rs:374
Methoddrop
(&mut self)
pg-extend/src/pg_alloc.rs:155
Methoddrop
(&mut self)
pg-extend/src/pg_datum.rs:396
Methodend_foreign_scan
End the scan and release resources.
pg-extend/src/pg_fdw.rs:404
Methodexec_foreign_delete
( _estate: *mut pg_sys::EState, rinfo: *mut pg_sys::ResultRelInfo, slot: *mut pg_sys::
pg-extend/src/pg_fdw.rs:503
Methodexec_foreign_insert
( _estate: *mut pg_sys::EState, rinfo: *mut pg_sys::ResultRelInfo, slot: *mut pg_sys::
pg-extend/src/pg_fdw.rs:533
Methodexec_foreign_update
( _estate: *mut pg_sys::EState, rinfo: *mut pg_sys::ResultRelInfo, slot: *mut pg_sys::
pg-extend/src/pg_fdw.rs:476
Methodfrom
(b: Bool)
pg-extend/src/pg_bool.rs:33
Methodfrom
(value: i16)
pg-extend/src/pg_datum.rs:104
Methodfrom
(level: Level)
pg-extend/src/log.rs:101
Methodfrom
(level: Level)
pg-extend/src/pg_error.rs:60
Methodfrom_cstring
Allocate a new Text data from the CString using the PgAllocator for the Postgres MemoryContext
pg-extend/src/native/text.rs:34
Methodfrom_option
( _memory_context: &'mc PgAllocator, datum: Option<Datum>, )
pg-extend/src/pg_datum.rs:42
Methodfrom_raw
Instantiate a PgAllocator from the raw pointer.
pg-extend/src/pg_alloc.rs:25
Methodfrom_raw
( _memory_context: &'mc PgAllocator, datum: Datum, is_null: B, )
pg-extend/src/pg_datum.rs:30
Methodfrom_raw
(alloc: &'mc PgAllocator, text_ptr: *mut pg_sys::text)
pg-extend/src/native/text.rs:23
Methodfrom_rust
Return the PgType of the parameter's type
pg-extend/src/pg_type.rs:89
Methodfrom_varlena
See postgres.h
pg-extend/src/native/varlena.rs:27
Functionget_args
Returns an iterator of argument Datums
pg-extend/src/lib.rs:69
Functionget_features
()
integration-tests/src/lib.rs:15
Methodget_field
( &self, _name: &str, _typ: pg_type::PgType, _opts: OptionMap, )
examples/fdw/src/lib.rs:35
Methodget_field
( &self, name: &str, _typ: pg_type::PgType, _opts: OptionMap, )
examples/fdw-rw/src/lib.rs:49
Methodget_field
( _memory_context: &'mc PgAllocator, attr: &pg_sys::FormData_pg_attribute, row: &'mc d
pg-extend/src/pg_fdw.rs:276
Methodget_foreign_paths
create access path for a scan on the foreign table
pg-extend/src/pg_fdw.rs:141
Methodget_foreign_plan
create a ForeignScan plan node
pg-extend/src/pg_fdw.rs:170
Methodget_foreign_rel_size
set relation size estimates for a foreign table
pg-extend/src/pg_fdw.rs:132
Functionget_null
()
examples/nullable/src/lib.rs:19
Methodget_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
Methodget_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
Methodimport_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