package query

import "github.com/LoL-Human/whatsmeow/store/sqlstore/query"

Index

Types

type Adapter

Adapter store all available queries to easily change the drivers

func NewByDialect

func NewByDialect(dialect string) Adapter

type AppStateMutationMacs

type AppStateMutationMacs interface {
	CreateTableStateMutationMacs() string
	PutAppStateMutationMACs(string) string
	DeleteAppStateMutationMACs(string) string
	GetAppStateMutationMAC() string
}

AppStateMutationMacs represents the table whatsmeow_app_state_mutation_macs

type AppStateSyncKeys

type AppStateSyncKeys interface {
	CreateTableStateSyncKeys() string
	PutAppStateSyncKey() string
	GetAppStateSyncKey() string
}

AppStateSyncKeys represents the table whatsmeow_app_state_sync_keys

type AppStateVersion

type AppStateVersion interface {
	CreateTableStateVersion() string
	PutAppStateVersion() string
	GetAppStateVersion() string
	DeleteAppStateVersion() string
}

AppStateVersion represents the table whatsmeow_app_state_version

type ChatSettings

type ChatSettings interface {
	CreateTableChatSettings() string
	PutChatSetting(string) string
	GetChatSettings() string
}

ChatSettings represents the table whatsmeow_chat_settings

type Contacts

type Contacts interface {
	CreateTableContacts() string
	PutContactName() string
	PutManyContactNames(string) string
	PutPushName() string
	PutBusinessName() string
	GetContact() string
	GetAllContacts() string
}

Contacts represents the table whatsmeow_contacts

type Device

type Device interface {
	CreateTableDevice() string
	AlterTableDevice_AddColumnSigKey() string
	FillSigKey() string
	DeleteNullSigKeys() string
	AlterTableDevice_SetNotNull() string
	GetAllDevices() string
	GetDevice() string
	InsertDevice() string
	DeleteDevice() string
}

Device represents the table whatsmeow_device

type IdentityKeys

type IdentityKeys interface {
	CreateTableIdentityKeys() string
	PutIdentity() string
	DeleteAllIdentities() string
	DeleteIdentity() string
	GetIdentity() string
}

IdentityKeys represents the table whatsmeow_identity_keys

type MessageSecrets

type MessageSecrets interface {
	CreateTableMessageSecrets() string
	PutMsgSecret() string
	GetMsgSecret() string
}

MessageSecrets represents the table whatsmeow_message_secrets

type MySql

type MySql struct{}

func (*MySql) AlterTableDevice_AddColumnSigKey

func (a *MySql) AlterTableDevice_AddColumnSigKey() string

func (*MySql) AlterTableDevice_SetNotNull

func (a *MySql) AlterTableDevice_SetNotNull() string

func (*MySql) CreateTableChatSettings

func (a *MySql) CreateTableChatSettings() string

func (*MySql) CreateTableContacts

func (a *MySql) CreateTableContacts() string

func (*MySql) CreateTableDevice

func (a *MySql) CreateTableDevice() string

func (*MySql) CreateTableIdentityKeys

func (a *MySql) CreateTableIdentityKeys() string

func (*MySql) CreateTableMessageSecrets

func (a *MySql) CreateTableMessageSecrets() string

func (*MySql) CreateTablePreKeys

func (a *MySql) CreateTablePreKeys() string

func (*MySql) CreateTablePrivacyTokens

func (a *MySql) CreateTablePrivacyTokens() string

func (*MySql) CreateTableSenderKeys

func (a *MySql) CreateTableSenderKeys() string

func (*MySql) CreateTableSessions

func (a *MySql) CreateTableSessions() string

func (*MySql) CreateTableStateMutationMacs

func (a *MySql) CreateTableStateMutationMacs() string

func (*MySql) CreateTableStateSyncKeys

func (a *MySql) CreateTableStateSyncKeys() string

func (*MySql) CreateTableStateVersion

func (a *MySql) CreateTableStateVersion() string

func (*MySql) CreateTableVersion

func (a *MySql) CreateTableVersion() string

func (*MySql) DeleteAllIdentities

func (a *MySql) DeleteAllIdentities() string

func (*MySql) DeleteAllSessions

func (a *MySql) DeleteAllSessions() string

func (*MySql) DeleteAllVersions

func (a *MySql) DeleteAllVersions() string

func (*MySql) DeleteAppStateMutationMACs

func (a *MySql) DeleteAppStateMutationMACs(placeholder string) string

func (*MySql) DeleteAppStateVersion

func (a *MySql) DeleteAppStateVersion() string

func (*MySql) DeleteDevice

func (a *MySql) DeleteDevice() string

func (*MySql) DeleteIdentity

func (a *MySql) DeleteIdentity() string

func (*MySql) DeleteNullSigKeys

func (a *MySql) DeleteNullSigKeys() string

func (*MySql) DeletePreKey

func (a *MySql) DeletePreKey() string

func (*MySql) DeleteSession

func (a *MySql) DeleteSession() string

func (*MySql) FillSigKey

func (a *MySql) FillSigKey() string

func (*MySql) GetAllContacts

func (a *MySql) GetAllContacts() string

func (*MySql) GetAllDevices

func (a *MySql) GetAllDevices() string

func (*MySql) GetAppStateMutationMAC

func (a *MySql) GetAppStateMutationMAC() string

func (*MySql) GetAppStateSyncKey

func (a *MySql) GetAppStateSyncKey() string

func (*MySql) GetAppStateVersion

func (a *MySql) GetAppStateVersion() string

func (*MySql) GetChatSettings

func (a *MySql) GetChatSettings() string

func (*MySql) GetContact

func (a *MySql) GetContact() string

func (*MySql) GetDevice

func (a *MySql) GetDevice() string

func (*MySql) GetIdentity

func (a *MySql) GetIdentity() string

func (*MySql) GetLastPreKeyID

func (a *MySql) GetLastPreKeyID() string

func (*MySql) GetMsgSecret

func (a *MySql) GetMsgSecret() string

func (*MySql) GetPreKey

func (a *MySql) GetPreKey() string

func (*MySql) GetPrivacyToken

func (a *MySql) GetPrivacyToken() string

func (*MySql) GetSenderKey

func (a *MySql) GetSenderKey() string

func (*MySql) GetSession

func (a *MySql) GetSession() string

func (*MySql) GetUnUploadedPreKeys

func (a *MySql) GetUnUploadedPreKeys() string

func (*MySql) GetUploadedPreKeyCount

func (a *MySql) GetUploadedPreKeyCount() string

func (*MySql) GetVersion

func (a *MySql) GetVersion() string

func (*MySql) HasSession

func (a *MySql) HasSession() string

func (*MySql) InsertDevice

func (a *MySql) InsertDevice() string

func (*MySql) InsertNewVersion

func (a *MySql) InsertNewVersion() string

func (*MySql) InsertPreKey

func (a *MySql) InsertPreKey() string

func (*MySql) MarkPreKeysAsUploaded

func (a *MySql) MarkPreKeysAsUploaded() string

func (*MySql) PlaceholderCreate

func (a *MySql) PlaceholderCreate(size, repeat int) string

func (*MySql) PutAppStateMutationMACs

func (a *MySql) PutAppStateMutationMACs(placeholder string) string

func (*MySql) PutAppStateSyncKey

func (a *MySql) PutAppStateSyncKey() string

func (*MySql) PutAppStateVersion

func (a *MySql) PutAppStateVersion() string

func (*MySql) PutBusinessName

func (a *MySql) PutBusinessName() string

func (*MySql) PutChatSetting

func (a *MySql) PutChatSetting(field string) string

func (*MySql) PutContactName

func (a *MySql) PutContactName() string

func (*MySql) PutIdentity

func (a *MySql) PutIdentity() string

func (*MySql) PutManyContactNames

func (a *MySql) PutManyContactNames(placeholder string) string

func (*MySql) PutMsgSecret

func (a *MySql) PutMsgSecret() string

func (*MySql) PutPrivacyTokens

func (a *MySql) PutPrivacyTokens(placeholder string) string

func (*MySql) PutPushName

func (a *MySql) PutPushName() string

func (*MySql) PutSenderKey

func (a *MySql) PutSenderKey() string

func (*MySql) PutSession

func (a *MySql) PutSession() string

type Postgres

type Postgres struct{}

func (*Postgres) AlterTableDevice_AddColumnSigKey

func (a *Postgres) AlterTableDevice_AddColumnSigKey() string

func (*Postgres) AlterTableDevice_SetNotNull

func (a *Postgres) AlterTableDevice_SetNotNull() string

func (*Postgres) CreateTableChatSettings

func (a *Postgres) CreateTableChatSettings() string

func (*Postgres) CreateTableContacts

func (a *Postgres) CreateTableContacts() string

func (*Postgres) CreateTableDevice

func (a *Postgres) CreateTableDevice() string

func (*Postgres) CreateTableIdentityKeys

func (a *Postgres) CreateTableIdentityKeys() string

func (*Postgres) CreateTableMessageSecrets

func (a *Postgres) CreateTableMessageSecrets() string

func (*Postgres) CreateTablePreKeys

func (a *Postgres) CreateTablePreKeys() string

func (*Postgres) CreateTablePrivacyTokens

func (a *Postgres) CreateTablePrivacyTokens() string

func (*Postgres) CreateTableSenderKeys

func (a *Postgres) CreateTableSenderKeys() string

func (*Postgres) CreateTableSessions

func (a *Postgres) CreateTableSessions() string

func (*Postgres) CreateTableStateMutationMacs

func (a *Postgres) CreateTableStateMutationMacs() string

func (*Postgres) CreateTableStateSyncKeys

func (a *Postgres) CreateTableStateSyncKeys() string

func (*Postgres) CreateTableStateVersion

func (a *Postgres) CreateTableStateVersion() string

func (*Postgres) CreateTableVersion

func (a *Postgres) CreateTableVersion() string

func (*Postgres) DeleteAllIdentities

func (a *Postgres) DeleteAllIdentities() string

func (*Postgres) DeleteAllSessions

func (a *Postgres) DeleteAllSessions() string

func (*Postgres) DeleteAllVersions

func (a *Postgres) DeleteAllVersions() string

func (*Postgres) DeleteAppStateMutationMACs

func (a *Postgres) DeleteAppStateMutationMACs(_ string) string

func (*Postgres) DeleteAppStateVersion

func (a *Postgres) DeleteAppStateVersion() string

func (*Postgres) DeleteDevice

func (a *Postgres) DeleteDevice() string

func (*Postgres) DeleteIdentity

func (a *Postgres) DeleteIdentity() string

func (*Postgres) DeleteNullSigKeys

func (a *Postgres) DeleteNullSigKeys() string

func (*Postgres) DeletePreKey

func (a *Postgres) DeletePreKey() string

func (*Postgres) DeleteSession

func (a *Postgres) DeleteSession() string

func (*Postgres) FillSigKey

func (a *Postgres) FillSigKey() string

func (*Postgres) GetAllContacts

func (a *Postgres) GetAllContacts() string

func (*Postgres) GetAllDevices

func (a *Postgres) GetAllDevices() string

func (*Postgres) GetAppStateMutationMAC

func (a *Postgres) GetAppStateMutationMAC() string

func (*Postgres) GetAppStateSyncKey

func (a *Postgres) GetAppStateSyncKey() string

func (*Postgres) GetAppStateVersion

func (a *Postgres) GetAppStateVersion() string

func (*Postgres) GetChatSettings

func (a *Postgres) GetChatSettings() string

func (*Postgres) GetContact

func (a *Postgres) GetContact() string

func (*Postgres) GetDevice

func (a *Postgres) GetDevice() string

func (*Postgres) GetIdentity

func (a *Postgres) GetIdentity() string

func (*Postgres) GetLastPreKeyID

func (a *Postgres) GetLastPreKeyID() string

func (*Postgres) GetMsgSecret

func (a *Postgres) GetMsgSecret() string

func (*Postgres) GetPreKey

func (a *Postgres) GetPreKey() string

func (*Postgres) GetPrivacyToken

func (a *Postgres) GetPrivacyToken() string

func (*Postgres) GetSenderKey

func (a *Postgres) GetSenderKey() string

func (*Postgres) GetSession

func (a *Postgres) GetSession() string

func (*Postgres) GetUnUploadedPreKeys

func (a *Postgres) GetUnUploadedPreKeys() string

func (*Postgres) GetUploadedPreKeyCount

func (a *Postgres) GetUploadedPreKeyCount() string

func (*Postgres) GetVersion

func (a *Postgres) GetVersion() string

func (*Postgres) HasSession

func (a *Postgres) HasSession() string

func (*Postgres) InsertDevice

func (a *Postgres) InsertDevice() string

func (*Postgres) InsertNewVersion

func (a *Postgres) InsertNewVersion() string

func (*Postgres) InsertPreKey

func (a *Postgres) InsertPreKey() string

func (*Postgres) MarkPreKeysAsUploaded

func (a *Postgres) MarkPreKeysAsUploaded() string

func (*Postgres) PlaceholderCreate

func (a *Postgres) PlaceholderCreate(size, repeat int) string

func (*Postgres) PutAppStateMutationMACs

func (a *Postgres) PutAppStateMutationMACs(placeholder string) string

func (*Postgres) PutAppStateSyncKey

func (a *Postgres) PutAppStateSyncKey() string

func (*Postgres) PutAppStateVersion

func (a *Postgres) PutAppStateVersion() string

func (*Postgres) PutBusinessName

func (a *Postgres) PutBusinessName() string

func (*Postgres) PutChatSetting

func (a *Postgres) PutChatSetting(field string) string

func (*Postgres) PutContactName

func (a *Postgres) PutContactName() string

func (*Postgres) PutIdentity

func (a *Postgres) PutIdentity() string

func (*Postgres) PutManyContactNames

func (a *Postgres) PutManyContactNames(placeholder string) string

func (*Postgres) PutMsgSecret

func (a *Postgres) PutMsgSecret() string

func (*Postgres) PutPrivacyTokens

func (a *Postgres) PutPrivacyTokens(placeholders string) string

func (*Postgres) PutPushName

func (a *Postgres) PutPushName() string

func (*Postgres) PutSenderKey

func (a *Postgres) PutSenderKey() string

func (*Postgres) PutSession

func (a *Postgres) PutSession() string

type PreKeys

type PreKeys interface {
	CreateTablePreKeys() string
	GetLastPreKeyID() string
	InsertPreKey() string
	GetUnUploadedPreKeys() string
	GetPreKey() string
	DeletePreKey() string
	MarkPreKeysAsUploaded() string
	GetUploadedPreKeyCount() string
}

PreKeys represents the table whatsmeow_pre_keys

type PrivacyTokens

type PrivacyTokens interface {
	CreateTablePrivacyTokens() string
	PutPrivacyTokens(string) string
	GetPrivacyToken() string
}

PrivacyTokens represents the table whatsmeow_privacy_tokens

type SenderKeys

type SenderKeys interface {
	CreateTableSenderKeys() string
	GetSenderKey() string
	PutSenderKey() string
}

SenderKeys represents the table whatsmeow_sender_keys

type Sessions

type Sessions interface {
	CreateTableSessions() string
	GetSession() string
	HasSession() string
	PutSession() string
	DeleteAllSessions() string
	DeleteSession() string
}

Sessions represents the table whatsmeow_sessions

type Sqlite

type Sqlite struct {
	Default Adapter
}

func (*Sqlite) AlterTableDevice_AddColumnSigKey

func (a *Sqlite) AlterTableDevice_AddColumnSigKey() string

func (*Sqlite) AlterTableDevice_SetNotNull

func (a *Sqlite) AlterTableDevice_SetNotNull() string

func (*Sqlite) CreateTableChatSettings

func (a *Sqlite) CreateTableChatSettings() string

func (*Sqlite) CreateTableContacts

func (a *Sqlite) CreateTableContacts() string

func (*Sqlite) CreateTableDevice

func (a *Sqlite) CreateTableDevice() string

func (*Sqlite) CreateTableIdentityKeys

func (a *Sqlite) CreateTableIdentityKeys() string

func (*Sqlite) CreateTableMessageSecrets

func (a *Sqlite) CreateTableMessageSecrets() string

func (*Sqlite) CreateTablePreKeys

func (a *Sqlite) CreateTablePreKeys() string

func (*Sqlite) CreateTablePrivacyTokens

func (a *Sqlite) CreateTablePrivacyTokens() string

func (*Sqlite) CreateTableSenderKeys

func (a *Sqlite) CreateTableSenderKeys() string

func (*Sqlite) CreateTableSessions

func (a *Sqlite) CreateTableSessions() string

func (*Sqlite) CreateTableStateMutationMacs

func (a *Sqlite) CreateTableStateMutationMacs() string

func (*Sqlite) CreateTableStateSyncKeys

func (a *Sqlite) CreateTableStateSyncKeys() string

func (*Sqlite) CreateTableStateVersion

func (a *Sqlite) CreateTableStateVersion() string

func (*Sqlite) CreateTableVersion

func (a *Sqlite) CreateTableVersion() string

func (*Sqlite) DeleteAllIdentities

func (a *Sqlite) DeleteAllIdentities() string

func (*Sqlite) DeleteAllSessions

func (a *Sqlite) DeleteAllSessions() string

func (*Sqlite) DeleteAllVersions

func (a *Sqlite) DeleteAllVersions() string

func (*Sqlite) DeleteAppStateMutationMACs

func (a *Sqlite) DeleteAppStateMutationMACs(placeholder string) string

func (*Sqlite) DeleteAppStateVersion

func (a *Sqlite) DeleteAppStateVersion() string

func (*Sqlite) DeleteDevice

func (a *Sqlite) DeleteDevice() string

func (*Sqlite) DeleteIdentity

func (a *Sqlite) DeleteIdentity() string

func (*Sqlite) DeleteNullSigKeys

func (a *Sqlite) DeleteNullSigKeys() string

func (*Sqlite) DeletePreKey

func (a *Sqlite) DeletePreKey() string

func (*Sqlite) DeleteSession

func (a *Sqlite) DeleteSession() string

func (*Sqlite) FillSigKey

func (a *Sqlite) FillSigKey() string

func (*Sqlite) GetAllContacts

func (a *Sqlite) GetAllContacts() string

func (*Sqlite) GetAllDevices

func (a *Sqlite) GetAllDevices() string

func (*Sqlite) GetAppStateMutationMAC

func (a *Sqlite) GetAppStateMutationMAC() string

func (*Sqlite) GetAppStateSyncKey

func (a *Sqlite) GetAppStateSyncKey() string

func (*Sqlite) GetAppStateVersion

func (a *Sqlite) GetAppStateVersion() string

func (*Sqlite) GetChatSettings

func (a *Sqlite) GetChatSettings() string

func (*Sqlite) GetContact

func (a *Sqlite) GetContact() string

func (*Sqlite) GetDevice

func (a *Sqlite) GetDevice() string

func (*Sqlite) GetIdentity

func (a *Sqlite) GetIdentity() string

func (*Sqlite) GetLastPreKeyID

func (a *Sqlite) GetLastPreKeyID() string

func (*Sqlite) GetMsgSecret

func (a *Sqlite) GetMsgSecret() string

func (*Sqlite) GetPreKey

func (a *Sqlite) GetPreKey() string

func (*Sqlite) GetPrivacyToken

func (a *Sqlite) GetPrivacyToken() string

func (*Sqlite) GetSenderKey

func (a *Sqlite) GetSenderKey() string

func (*Sqlite) GetSession

func (a *Sqlite) GetSession() string

func (*Sqlite) GetUnUploadedPreKeys

func (a *Sqlite) GetUnUploadedPreKeys() string

func (*Sqlite) GetUploadedPreKeyCount

func (a *Sqlite) GetUploadedPreKeyCount() string

func (*Sqlite) GetVersion

func (a *Sqlite) GetVersion() string

func (*Sqlite) HasSession

func (a *Sqlite) HasSession() string

func (*Sqlite) InsertDevice

func (a *Sqlite) InsertDevice() string

func (*Sqlite) InsertNewVersion

func (a *Sqlite) InsertNewVersion() string

func (*Sqlite) InsertPreKey

func (a *Sqlite) InsertPreKey() string

func (*Sqlite) MarkPreKeysAsUploaded

func (a *Sqlite) MarkPreKeysAsUploaded() string

func (*Sqlite) PlaceholderCreate

func (a *Sqlite) PlaceholderCreate(size, repeat int) string

func (*Sqlite) PutAppStateMutationMACs

func (a *Sqlite) PutAppStateMutationMACs(placeholder string) string

func (*Sqlite) PutAppStateSyncKey

func (a *Sqlite) PutAppStateSyncKey() string

func (*Sqlite) PutAppStateVersion

func (a *Sqlite) PutAppStateVersion() string

func (*Sqlite) PutBusinessName

func (a *Sqlite) PutBusinessName() string

func (*Sqlite) PutChatSetting

func (a *Sqlite) PutChatSetting(field string) string

func (*Sqlite) PutContactName

func (a *Sqlite) PutContactName() string

func (*Sqlite) PutIdentity

func (a *Sqlite) PutIdentity() string

func (*Sqlite) PutManyContactNames

func (a *Sqlite) PutManyContactNames(placeholder string) string

func (*Sqlite) PutMsgSecret

func (a *Sqlite) PutMsgSecret() string

func (*Sqlite) PutPrivacyTokens

func (a *Sqlite) PutPrivacyTokens(placeholder string) string

func (*Sqlite) PutPushName

func (a *Sqlite) PutPushName() string

func (*Sqlite) PutSenderKey

func (a *Sqlite) PutSenderKey() string

func (*Sqlite) PutSession

func (a *Sqlite) PutSession() string

type Version

type Version interface {
	CreateTableVersion() string
	GetVersion() string
	DeleteAllVersions() string
	InsertNewVersion() string
}

Version represents the table whatsmeow_version

Source Files

adapter.go mysql.go postgres.go sqlite.go

Version
v0.0.0-20230430105658-b4c86c681ebd (latest)
Published
Apr 30, 2023
Platform
linux/amd64
Imports
2 packages
Last checked
2 months ago

Tools for package owners.