Documentation ¶
Index ¶
- Constants
- func AddOneMonthFallbackToLastDayOfMonth(date time.Time) time.Time
- func AddToListIfNotExists(arr []string, valueToAdd string) []string
- func AnySliceToStringSlice(input []any) ([]string, error)
- func AnyToJSONB(data any) (datatypes.JSON, error)
- func BackOffConfig(initialInterval time.Duration, multiplier float64, maxInterval time.Duration, ...) backoff.BackOff
- func BackOffExponentialDelay(attempt int) time.Duration
- func BackOffForInvoking() backoff.BackOff
- func BackOffIncrementalDelay(attempt int) time.Duration
- func BoolDefaultIfNil(check any, def bool) bool
- func BoolPtr(b bool) *bool
- func BoolToString(b bool) string
- func CallEventsPlatformGRPCWithRetry[T any](operation func() (T, error)) (T, error)
- func CapitalizeAllParts(str string, delimiters []string) string
- func CleanName(input string) string
- func Contains(slice []string, value string) bool
- func ContainsAll(sourceSlice, itemsToCheck []string) bool
- func ContainsElement[T comparable](slice []T, value T) bool
- func ConvertTimeToTimestampPtr(input *time.Time) *timestamppb.Timestamp
- func ConvertToUTC(datetimeStr string) (time.Time, error)
- func CypherString(c model.ComparisonOperator) string
- func Decode(input map[string]any, result any) error
- func Decrypt(encryptedHex, ivHex string, encodedKey string) (string, error)
- func Encrypt(plaintext, encodedKey string) (string, string, error)
- func EndOfDayInUTC(t time.Time) time.Time
- func EnforceSingleValue(slice []string, value string)
- func EnsureEmailRfcId(id string) string
- func EnsureEmailRfcIds(to []string) []string
- func ExecuteQuery(ctx context.Context, driver neo4j.DriverWithContext, database, cypher string, ...) (*neo4j.EagerResult, error)
- func ExecuteQueryInTx(ctx context.Context, tx neo4j.ManagedTransaction, query string, ...) error
- func ExecuteReadInTransaction(ctx context.Context, driver *neo4j.DriverWithContext, database string, ...) (any, error)
- func ExecuteWriteInTransaction(ctx context.Context, driver *neo4j.DriverWithContext, database string, ...) (any, error)
- func ExecuteWriteInTransactionWithPostCommitActions(ctx context.Context, driver *neo4j.DriverWithContext, database string, ...) (any, error)
- func ExecuteWriteQuery(ctx context.Context, driver neo4j.DriverWithContext, cypher string, ...) error
- func ExecuteWriteQueryOnDb(ctx context.Context, driver neo4j.DriverWithContext, database, cypher string, ...) error
- func ExtractAfterColon(s string) string
- func ExtractAllRecordsAsString(ctx context.Context, result neo4j.ResultWithContext, err error) ([]string, error)
- func ExtractAllRecordsFirstValueAsDbNodePtrs(ctx context.Context, result neo4j.ResultWithContext, err error) ([]*dbtype.Node, error)
- func ExtractDomain(input string) string
- func ExtractDomainFromEmail(email string) string
- func ExtractFirstPart(str, delimiter string) string
- func ExtractFirstRecordFirstValueAsDbNodePtr(ctx context.Context, result neo4j.ResultWithContext, err error) (*dbtype.Node, error)
- func ExtractJsonFromString(str string) (string, error)
- func ExtractName(email string) string
- func ExtractSingleRecordFirstValue(ctx context.Context, result neo4j.ResultWithContext, err error) (any, error)
- func ExtractSingleRecordFirstValueAsNode(ctx context.Context, result neo4j.ResultWithContext, err error) (*dbtype.Node, error)
- func ExtractSingleRecordFirstValueAsString(ctx context.Context, result neo4j.ResultWithContext, err error) (string, error)
- func ExtractSingleRecordFirstValueAsType[T any](ctx context.Context, result neo4j.ResultWithContext, err error) (T, error)
- func FirstNotEmpty(input ...string) *string
- func FirstNotEmptyString(input ...string) string
- func FirstTimeOfMonth(year, month int) time.Time
- func Float64Ptr(f float64) *float64
- func Float64PtrEquals(a, b *float64) bool
- func FloatToString(num *float64) string
- func FormatAmount(amount float64, decimals int) string
- func GenerateHashId(s string, length int) string
- func GenerateKey(length int, includeSpecial bool) string
- func GenerateLowerAlpha(length int) string
- func GenerateNanoIdWithPrefix(s string, length int) string
- func GenerateRandomInt(min, max int) int
- func GenerateRandomString(length int) string
- func GenerateRandomStringFromCharset(length int, charset string) string
- func GenerateSecret() (string, error)
- func GetBoolPropOrFalse(props map[string]any, key string) bool
- func GetBoolPropOrNil(props map[string]any, key string) *bool
- func GetBoolPropOrTrue(props map[string]any, key string) bool
- func GetContextWithTimeout(ctx context.Context, duration time.Duration) (context.Context, context.CancelFunc)
- func GetCurrentTimeInTimeZone(timezone string) time.Time
- func GetDomainWithoutTLD(domain string) string
- func GetEpochStart() time.Time
- func GetFileByName(filePath string) (*os.File, error)
- func GetFileType(head []byte) (types.Type, error)
- func GetFileTypeHeadFromBytes(bytes *[]byte) ([]byte, error)
- func GetFileTypeHeadFromMultipart(file multipart.File) ([]byte, error)
- func GetFloatPropOrNil(props map[string]any, key string) *float64
- func GetFloatPropOrZero(props map[string]any, key string) float64
- func GetFunctionName() string
- func GetInt64PropOrDefault(props map[string]any, key string, defaultVal int64) int64
- func GetInt64PropOrNil(props map[string]any, key string) *int64
- func GetInt64PropOrZero(props map[string]any, key string) int64
- func GetIntPropOrMinusOne(props map[string]any, key string) int64
- func GetListStringPropOrEmpty(props map[string]any, key string) []string
- func GetLongLivedContext(ctx context.Context) (context.Context, context.CancelFunc)
- func GetMediumLivedContext(ctx context.Context) (context.Context, context.CancelFunc)
- func GetMediumLongLivedContext(ctx context.Context) (context.Context, context.CancelFunc)
- func GetPropertyDetailsByLookupName(T reflect.Type, lookupName string) (map[string]string, error)
- func GetPropsFromNode(node dbtype.Node) map[string]any
- func GetPropsFromRelationship(rel dbtype.Relationship) map[string]any
- func GetReadableNameFromEmail(email string) string
- func GetShortLivedContext(ctx context.Context) (context.Context, context.CancelFunc)
- func GetStringPropOrEmpty(props map[string]any, key string) string
- func GetStringPropOrNil(props map[string]any, key string) *string
- func GetTimePropFromNeo4jOrZeroTime(valueToExtract any) time.Time
- func GetTimePropOrEpochStart(props map[string]any, key string) time.Time
- func GetTimePropOrNil(props map[string]any, key string) *time.Time
- func GetTimePropOrNow(props map[string]any, key string) time.Time
- func GetTimePropOrZeroTime(props map[string]any, key string) time.Time
- func Hmac(body []byte, key []byte) *string
- func IfNotNilBool(check any, valueExtractor ...func() bool) bool
- func IfNotNilFloat64(check any, valueExtractor ...func() float64) float64
- func IfNotNilInt64(check any, valueExtractor ...func() int64) int64
- func IfNotNilString(check any, valueExtractor ...func() string) string
- func IfNotNilStringWithDefault(check any, defaultValue string) string
- func IfNotNilTimeWithDefault(check any, defaultValue time.Time) time.Time
- func Int64Ptr(i int64) *int64
- func Int64PtrToIntPtr(v *int64) *int
- func IntPtr(i int) *int
- func IntPtrToInt64Ptr(v *int) *int64
- func IsAfter(t1, t2 *time.Time) bool
- func IsEmptyString(s *string) bool
- func IsEndOfMonth(t time.Time) bool
- func IsEqualTimePtr(t1, t2 *time.Time) bool
- func IsStringInSlice(s string, slice []string) bool
- func IsValidDomain(input string) bool
- func IsValidTLD(input string) bool
- func JSONBToAny(jsonData datatypes.JSON) (any, error)
- func JoinNonEmpty(delimiter string, strs ...string) string
- func LastDayOfMonth(year, month int) time.Time
- func LastTimeOfMonth(year, month int) time.Time
- func LowercaseSliceOfStrings(arr []string) []string
- func LowercaseStrings(arr []string)deprecated
- func MergeMapToMap(src, dst map[string]any)
- func MergeMaps[K comparable, V any](dst, src map[K]V) map[K]V
- func MiddleTimeOfMonth(year, month int) time.Time
- func NewNeo4jReadSession(ctx context.Context, driver neo4j.DriverWithContext, ...) neo4j.SessionWithContext
- func NewNeo4jWriteSession(ctx context.Context, driver neo4j.DriverWithContext, ...) neo4j.SessionWithContext
- func NewUUIDIfEmpty(str string) string
- func NodePtr(node dbtype.Node) *dbtype.Node
- func NormalizeString(input string) string
- func Now() time.Time
- func NowIfZero(t time.Time) time.Time
- func NowPtr() *time.Time
- func ParseStringToFloat(input string) *float64
- func Ptr[T any](obj T) *T
- func RelationshipPtr(relationship dbtype.Relationship) *dbtype.Relationship
- func RemoveDuplicates(arr []string) []string
- func RemoveEmpties(arr []string) []string
- func RemoveFromList(arr []string, valueToRemove string) []string
- func ReplaceSingleQuotesWithDoubleQuotes(input string) string
- func ReverseMap[K comparable, V comparable](in map[K]V) map[V]K
- func RoundHalfUpFloat64(input float64, decimals int) float64
- func SanitizeUTF8(input string) string
- func SendSlackMessage(c context.Context, slackWehbookUrl, text string) error
- func SliceToString(slice []string) string
- func StartOfDayInUTC(t time.Time) time.Time
- func StringFirstNonEmpty(strs ...string) string
- func StringOrEmpty(key *string) string
- func StringPtr(str string) *string
- func StringPtrFirstNonEmpty(strs ...*string) string
- func StringPtrFirstNonEmptyNillable(strs ...string) *string
- func StringPtrNillable(str string) *string
- func StringSlicesEqualIgnoreOrder(slice1, slice2 []string) bool
- func StringToSlice(str string) []string
- func SurroundWith(src, surround string) string
- func SurroundWithRoundParentheses(src string) string
- func SurroundWithSpaces(src string) string
- func TimeOrNowFromPtr(t *time.Time) time.Time
- func TimePtr(t time.Time) *time.Time
- func TimePtrAsAny(times ...*time.Time) interface{}
- func TimestampProtoToTime(pbTime *timestamppb.Timestamp) time.Time
- func TimestampProtoToTimePtr(pbTime *timestamppb.Timestamp) *time.Time
- func ToCamelCase(input string) string
- func ToDate(t time.Time) time.Time
- func ToDateAsAny(t *time.Time) interface{}
- func ToDatePtr(t *time.Time) *time.Time
- func ToHookFunc() mapstructure.DecodeHookFunc
- func ToJson(obj any) (string, error)
- func ToNeo4jDateAsAny(t *time.Time) any
- func ToPtr[T any](obj T) *T
- func Today() time.Time
- func TruncateFloat64(input float64, decimals int) float64
- func UnmarshalDateTime(input string) (*time.Time, error)
- func ZeroTime() time.Time
- type BoltLogger
- type ConsoleBoltNoLogger
- type Cypher
- type CypherFilter
- func CreateCypherFilter(propertyName string, searchTerm any, comparator model.ComparisonOperator) *CypherFilter
- func CreateCypherFilterEq(propertyName string, value any) *CypherFilter
- func CreateCypherFilterIn(propertyName string, arrayValues any) *CypherFilter
- func CreateCypherFilterIsNotNull(propertyName string) *CypherFilter
- func CreateCypherFilterIsNull(propertyName string) *CypherFilter
- func CreateCypherFilterNotEq(propertyName string, value any) *CypherFilter
- func CreateRawCypherFilter(rawCypher string) *CypherFilter
- func CreateStringCypherFilter(propertyName string, searchTerm any, comparator model.ComparisonOperator) *CypherFilter
- func (f *CypherFilter) BuildCypherFilterFragment(nodeAlias string) (string, map[string]any)
- func (f *CypherFilter) BuildCypherFilterFragmentWithParamName(nodeAlias string, customParamPrefix string) (string, map[string]any)
- func (f *CypherFilter) CypherFilterFragment(nodeAlias string) (Cypher, map[string]any)
- func (f CypherFilter) String() string
- type CypherFilterItem
- type CypherSort
- type DbNodeAndId
- type DbNodeAndRelation
- type DbNodeAndTenant
- type DbNodePairAndId
- type DbNodeWithRelationAndId
- type DbNodeWithRelationIdAndTenant
- type DbNodesWithTotalCount
- type DbPropsAndId
- type EventCompletedDetails
- type LogicalOperator
- type OrderBy
- type Pagination
- type PaginationRequestBody
- type Pair
- type PairDbNodesWithTotalCount
- type RecordsWithTotalCount
- type SessionConfigurationOption
- type StringsWithTenant
- type StringsWithTotalCount
- type TxWithPostCommit
- type YearMonth
Constants ¶
const ( ShortDuration = 500 * time.Millisecond MediumDuration = 2 * time.Second MediumLongDuration = 10 * time.Second LongDuration = 20 * time.Second QuarterOfHourDuration = 15 * time.Minute HalfOfHourDuration = 30 * time.Minute )
const ( TagKey = "neo4jDb" TagLookupName = "lookupName" TagProperty = "property" TagSupportCaseSensitive = "supportCaseSensitive" )
Variables ¶
This section is empty.
Functions ¶
func AddToListIfNotExists ¶
func AnySliceToStringSlice ¶
func BackOffConfig ¶
func BackOffExponentialDelay ¶
Implement a backoffDelay function that calculates the delay before the next retry.
func BackOffForInvoking ¶
func BackOffForInvoking() backoff.BackOff
func BackOffIncrementalDelay ¶
func BoolDefaultIfNil ¶
func BoolToString ¶
func CapitalizeAllParts ¶
func ContainsAll ¶
func ContainsElement ¶
func ContainsElement[T comparable](slice []T, value T) bool
func ConvertTimeToTimestampPtr ¶
func ConvertTimeToTimestampPtr(input *time.Time) *timestamppb.Timestamp
func CypherString ¶
func CypherString(c model.ComparisonOperator) string
func EnforceSingleValue ¶
func EnsureEmailRfcId ¶
func EnsureEmailRfcIds ¶
func ExecuteQuery ¶
func ExecuteQueryInTx ¶
func ExecuteReadInTransaction ¶
func ExecuteReadInTransaction( ctx context.Context, driver *neo4j.DriverWithContext, database string, tx *neo4j.ManagedTransaction, action func(tx neo4j.ManagedTransaction) (any, error), ) (any, error)
func ExecuteWriteInTransaction ¶
func ExecuteWriteInTransaction( ctx context.Context, driver *neo4j.DriverWithContext, database string, tx *neo4j.ManagedTransaction, action func(tx neo4j.ManagedTransaction) (any, error), ) (any, error)
func ExecuteWriteInTransactionWithPostCommitActions ¶
func ExecuteWriteInTransactionWithPostCommitActions( ctx context.Context, driver *neo4j.DriverWithContext, database string, txWithPostCommit *TxWithPostCommit, action func(tx *TxWithPostCommit) (any, error), ) (any, error)
func ExecuteWriteQuery ¶
func ExecuteWriteQueryOnDb ¶
func ExtractAfterColon ¶
func ExtractDomain ¶
func ExtractDomainFromEmail ¶
func ExtractFirstPart ¶
func ExtractJsonFromString ¶
func ExtractName ¶
func FirstNotEmpty ¶
func FirstNotEmptyString ¶
func FirstTimeOfMonth ¶
func Float64Ptr ¶
func Float64PtrEquals ¶
func FloatToString ¶
func FormatAmount ¶
func GenerateHashId ¶
func GenerateKey ¶
func GenerateLowerAlpha ¶
func GenerateRandomInt ¶
func GenerateRandomString ¶
func GenerateSecret ¶
GenerateSecret generates a cryptographically secure random string of the given byte size, encoded in URL-safe Base64 without padding.
func GetContextWithTimeout ¶
func GetDomainWithoutTLD ¶
GetDomainWithoutTLD returns everything before the last dot in the domain
func GetEpochStart ¶
func GetFunctionName ¶
func GetFunctionName() string
func GetInt64PropOrDefault ¶
func GetLongLivedContext ¶
func GetMediumLivedContext ¶
func GetPropsFromRelationship ¶
func GetPropsFromRelationship(rel dbtype.Relationship) map[string]any
func GetShortLivedContext ¶
func GetTimePropOrEpochStart ¶
func IfNotNilBool ¶
func IfNotNilFloat64 ¶
func IfNotNilInt64 ¶
func IfNotNilString ¶
func IfNotNilTimeWithDefault ¶
func Int64PtrToIntPtr ¶
func IntPtrToInt64Ptr ¶
func IsAfter ¶
IsAfter compares two *time.Time, considering nil as far in the future. if both are nil return false
func IsEmptyString ¶
func IsEndOfMonth ¶
func IsEqualTimePtr ¶
IsEqualTimePtr compares two *time.Time values and returns true if both are nil or if both point to the same time.
func IsStringInSlice ¶
func IsValidDomain ¶
func IsValidTLD ¶
func JoinNonEmpty ¶
func LastDayOfMonth ¶
func LastTimeOfMonth ¶
func LowercaseSliceOfStrings ¶
func LowercaseStrings
deprecated
func LowercaseStrings(arr []string)
Deprecated: use LowercaseSliceOfStrings instead
func MergeMapToMap ¶
func MergeMaps ¶
func MergeMaps[K comparable, V any](dst, src map[K]V) map[K]V
func MiddleTimeOfMonth ¶
func NewNeo4jReadSession ¶
func NewNeo4jReadSession(ctx context.Context, driver neo4j.DriverWithContext, options ...SessionConfigurationOption) neo4j.SessionWithContext
func NewNeo4jWriteSession ¶
func NewNeo4jWriteSession(ctx context.Context, driver neo4j.DriverWithContext, options ...SessionConfigurationOption) neo4j.SessionWithContext
func NewUUIDIfEmpty ¶
func NormalizeString ¶
func ParseStringToFloat ¶
func RelationshipPtr ¶
func RelationshipPtr(relationship dbtype.Relationship) *dbtype.Relationship
func RemoveDuplicates ¶
func RemoveEmpties ¶
func RemoveFromList ¶
func ReplaceSingleQuotesWithDoubleQuotes ¶
ReplaceSingleQuotes replaces single quotes with double quotes in a JSON-like string
func ReverseMap ¶
func ReverseMap[K comparable, V comparable](in map[K]V) map[V]K
func RoundHalfUpFloat64 ¶
func SanitizeUTF8 ¶
func SendSlackMessage ¶
func SliceToString ¶
func StringFirstNonEmpty ¶
func StringOrEmpty ¶
func StringPtrFirstNonEmpty ¶
func StringPtrNillable ¶
func StringToSlice ¶
func SurroundWith ¶
func SurroundWithSpaces ¶
func TimePtrAsAny ¶
func TimestampProtoToTime ¶
func TimestampProtoToTime(pbTime *timestamppb.Timestamp) time.Time
func TimestampProtoToTimePtr ¶
func TimestampProtoToTimePtr(pbTime *timestamppb.Timestamp) *time.Time
func ToCamelCase ¶
func ToDateAsAny ¶
func ToHookFunc ¶
func ToHookFunc() mapstructure.DecodeHookFunc
func ToNeo4jDateAsAny ¶
func TruncateFloat64 ¶
Types ¶
type BoltLogger ¶
type ConsoleBoltNoLogger ¶
type ConsoleBoltNoLogger struct { }
func ConsoleBoltNoLoggerrr ¶
func ConsoleBoltNoLoggerrr() *ConsoleBoltNoLogger
func (*ConsoleBoltNoLogger) LogClientMessage ¶
func (cbl *ConsoleBoltNoLogger) LogClientMessage(id, msg string, args ...any)
func (*ConsoleBoltNoLogger) LogServerMessage ¶
func (cbl *ConsoleBoltNoLogger) LogServerMessage(id, msg string, args ...any)
type CypherFilter ¶
type CypherFilter struct { Negate bool LogicalOperator LogicalOperator Filters []*CypherFilter Details *CypherFilterItem // contains filtered or unexported fields }
func CreateCypherFilter ¶
func CreateCypherFilter(propertyName string, searchTerm any, comparator model.ComparisonOperator) *CypherFilter
func CreateCypherFilterEq ¶
func CreateCypherFilterEq(propertyName string, value any) *CypherFilter
func CreateCypherFilterIn ¶
func CreateCypherFilterIn(propertyName string, arrayValues any) *CypherFilter
func CreateCypherFilterIsNotNull ¶
func CreateCypherFilterIsNotNull(propertyName string) *CypherFilter
func CreateCypherFilterIsNull ¶
func CreateCypherFilterIsNull(propertyName string) *CypherFilter
func CreateCypherFilterNotEq ¶
func CreateCypherFilterNotEq(propertyName string, value any) *CypherFilter
func CreateRawCypherFilter ¶
func CreateRawCypherFilter(rawCypher string) *CypherFilter
func CreateStringCypherFilter ¶
func CreateStringCypherFilter(propertyName string, searchTerm any, comparator model.ComparisonOperator) *CypherFilter
func (*CypherFilter) BuildCypherFilterFragment ¶
func (f *CypherFilter) BuildCypherFilterFragment(nodeAlias string) (string, map[string]any)
func (*CypherFilter) BuildCypherFilterFragmentWithParamName ¶
func (*CypherFilter) CypherFilterFragment ¶
func (f *CypherFilter) CypherFilterFragment(nodeAlias string) (Cypher, map[string]any)
func (CypherFilter) String ¶
func (f CypherFilter) String() string
type CypherFilterItem ¶
type CypherFilterItem struct { NodeProperty string SupportCaseSensitive bool CaseSensitive bool Value any DbNodePropertyProps map[string]string ComparisonOperator model.ComparisonOperator Coalesce bool RawCypher string }
func (CypherFilterItem) String ¶
func (f CypherFilterItem) String() string
type CypherSort ¶
type CypherSort struct {
// contains filtered or unexported fields
}
func (*CypherSort) NewSortRule ¶
func (*CypherSort) SortingCypherFragment ¶
func (s *CypherSort) SortingCypherFragment(nodeAlias string) Cypher
func (*CypherSort) SortingCypherFragmentWithDefaultIfNil ¶
func (s *CypherSort) SortingCypherFragmentWithDefaultIfNil(aliases, nodeAlias string, defaultValueIfNil string) Cypher
type DbNodeAndId ¶
func ExtractAllRecordsAsDbNodeAndId ¶
func ExtractAllRecordsAsDbNodeAndId(ctx context.Context, result neo4j.ResultWithContext, err error) ([]*DbNodeAndId, error)
func ExtractAllRecordsAsDbNodeAndIdFromEagerResult ¶
func ExtractAllRecordsAsDbNodeAndIdFromEagerResult(result *neo4j.EagerResult) []*DbNodeAndId
type DbNodeAndRelation ¶
type DbNodeAndRelation struct { Node *dbtype.Node Relationship *dbtype.Relationship }
type DbNodeAndTenant ¶
func ExtractAllRecordsAsDbNodeAndTenant ¶
func ExtractAllRecordsAsDbNodeAndTenant(ctx context.Context, result neo4j.ResultWithContext, err error) ([]*DbNodeAndTenant, error)
type DbNodePairAndId ¶
func ExtractAllRecordsAsDbNodePairAndId ¶
func ExtractAllRecordsAsDbNodePairAndId(ctx context.Context, result neo4j.ResultWithContext, err error) ([]*DbNodePairAndId, error)
type DbNodeWithRelationAndId ¶
type DbNodeWithRelationAndId struct { Node *dbtype.Node Relationship *dbtype.Relationship LinkedNodeId string }
func ExtractAllRecordsAsDbNodeWithRelationAndId ¶
func ExtractAllRecordsAsDbNodeWithRelationAndId(ctx context.Context, result neo4j.ResultWithContext, err error) ([]*DbNodeWithRelationAndId, error)
type DbNodeWithRelationIdAndTenant ¶
type DbNodeWithRelationIdAndTenant struct { Node *dbtype.Node Relationship *dbtype.Relationship LinkedNodeId string Tenant string }
func ExtractAllRecordsAsDbNodeWithRelationIdAndTenant ¶
func ExtractAllRecordsAsDbNodeWithRelationIdAndTenant(ctx context.Context, result neo4j.ResultWithContext, err error) ([]*DbNodeWithRelationIdAndTenant, error)
type DbNodesWithTotalCount ¶
type DbPropsAndId ¶
func ExtractAllRecordsAsDbPropsAndId ¶
func ExtractAllRecordsAsDbPropsAndId(ctx context.Context, result neo4j.ResultWithContext, err error) ([]*DbPropsAndId, error)
type EventCompletedDetails ¶
func NewEventCompletedDetails ¶
func NewEventCompletedDetails() *EventCompletedDetails
func (*EventCompletedDetails) WithCreate ¶
func (ecd *EventCompletedDetails) WithCreate() *EventCompletedDetails
func (*EventCompletedDetails) WithDelete ¶
func (ecd *EventCompletedDetails) WithDelete() *EventCompletedDetails
func (*EventCompletedDetails) WithUpdate ¶
func (ecd *EventCompletedDetails) WithUpdate() *EventCompletedDetails
type LogicalOperator ¶
type LogicalOperator int
const ( L_NONE LogicalOperator = iota AND OR )
func (LogicalOperator) String ¶
func (l LogicalOperator) String() string
type OrderBy ¶
type OrderBy struct {
// contains filtered or unexported fields
}
func (*OrderBy) WithCoalesce ¶
func (*OrderBy) WithDescending ¶
type Pagination ¶
func (*Pagination) GetLimit ¶
func (p *Pagination) GetLimit() int
func (*Pagination) GetPage ¶
func (p *Pagination) GetPage() int
func (*Pagination) GetSkip ¶
func (p *Pagination) GetSkip() int
func (*Pagination) SetRows ¶
func (p *Pagination) SetRows(rows interface{})
func (*Pagination) SetTotalRows ¶
func (p *Pagination) SetTotalRows(totalRows int64)
type PaginationRequestBody ¶
type RecordsWithTotalCount ¶
type SessionConfigurationOption ¶
type SessionConfigurationOption func(config *neo4j.SessionConfig)
func WithBoltLogger ¶
func WithBoltLogger(logger log.BoltLogger) SessionConfigurationOption
func WithDatabaseName ¶
func WithDatabaseName(databaseName string) SessionConfigurationOption
func WithFetchSize ¶
func WithFetchSize(fetchSize int) SessionConfigurationOption
type StringsWithTenant ¶
func ExtractAllRecordsAsStringsWithTenant ¶
func ExtractAllRecordsAsStringsWithTenant(ctx context.Context, result neo4j.ResultWithContext, err error) ([]*StringsWithTenant, error)
type StringsWithTotalCount ¶
type TxWithPostCommit ¶
type TxWithPostCommit struct { Tx *neo4j.ManagedTransaction // contains filtered or unexported fields }
func NewTxWithPostCommit ¶
func NewTxWithPostCommit(tx *neo4j.ManagedTransaction) *TxWithPostCommit
func (*TxWithPostCommit) AddPostCommitAction ¶
func (t *TxWithPostCommit) AddPostCommitAction(action func(ctx context.Context) error)
AddPostCommitAction adds a post-commit action (e.g., publish message to RabbitMQ)
Source Files ¶
- HmacSha1Encoder.go
- context_utils.go
- core_utils.go
- decode.go
- domain_utils.go
- email_utils.go
- encrypt.go
- event_utils.go
- file_utils.go
- float_utils.go
- id_gen_utils.go
- int_utils.go
- list_utils.go
- neo4j_entity.go
- neo4j_filter.go
- neo4j_no_bolt_logging.go
- neo4j_sort.go
- neo4j_utils.go
- pagination.go
- postgres_utils.go
- retry.go
- secret_utils.go
- slack_utils.go
- string_utils.go
- time_utils.go