package cassandra
import "github.com/golang-migrate/migrate/v4/database/cassandra"
Index ¶
- Variables
- func WithInstance(session *gocql.Session, config *Config) (database.Driver, error)
- type Cassandra
- func (c *Cassandra) Close() error
- func (c *Cassandra) Drop() error
- func (c *Cassandra) Lock() error
- func (c *Cassandra) Open(url string) (database.Driver, error)
- func (c *Cassandra) Run(migration io.Reader) error
- func (c *Cassandra) SetVersion(version int, dirty bool) error
- func (c *Cassandra) Unlock() error
- func (c *Cassandra) Version() (version int, dirty bool, err error)
- type Config
Variables ¶
var ( ErrNilConfig = errors.New("no config") ErrNoKeyspace = errors.New("no keyspace provided") ErrDatabaseDirty = errors.New("database is dirty") ErrClosedSession = errors.New("session is closed") )
var DefaultMigrationsTable = "schema_migrations"
var ( DefaultMultiStatementMaxSize = 10 * 1 << 20 // 10 MB )
Functions ¶
func WithInstance ¶
Types ¶
type Cassandra ¶
type Cassandra struct {
// contains filtered or unexported fields
}
func (*Cassandra) Close ¶
func (*Cassandra) Drop ¶
func (*Cassandra) Lock ¶
func (*Cassandra) Open ¶
func (*Cassandra) Run ¶
func (*Cassandra) SetVersion ¶
func (*Cassandra) Unlock ¶
func (*Cassandra) Version ¶
Return current keyspace version
type Config ¶
type Config struct { MigrationsTable string KeyspaceName string MultiStatementEnabled bool MultiStatementMaxSize int }
Source Files ¶
- Version
- v4.18.2 (latest)
- Published
- Jan 27, 2025
- Platform
- js/wasm
- Imports
- 12 packages
- Last checked
- 1 week ago –
Tools for package owners.