Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionDetails ¶
type Postgre ¶
type Postgre struct {
// contains filtered or unexported fields
}
Postgre is a provider that uses PostgreSQL as the underlying database.
func NewPostgre ¶
func NewPostgre(details ConnectionDetails) (*Postgre, error)
NewPostgre creates a new Postgre provider with the given connection details.
type Provider ¶
type Provider interface { // Balance returns the balance of the player with the given UUID. Balance(UUID string) (uint64, error) // Set sets the balance of the player with the given UUID to the given value. Set(UUID string, value uint64) error io.Closer }
Provider is an interface that defines the methods that a provider must implement.
type SQLite ¶
SQLite is a provider that uses SQLite as the underlying database.
func NewSQLite ¶
NewSQLite creates a new SQLite provider and opens the database. If the economy database does not exist, it will be created.
Click to show internal directories.
Click to hide internal directories.