func (d *DB) PreparedQuery(id string) *PreparedQuery {
	return initPreparedQuery(d.db, id, d.config)
}
PreparedQuery returns a helper to fire a PreparedQueries request
package db
import (
	"github.com/spaceuptech/space-api-go/config"
	"github.com/spaceuptech/space-api-go/realtime"
	"github.com/spaceuptech/space-api-go/types"
)
type DB struct {
	config   *config.Config
	realTime *realtime.Realtime
	db       string
}
func New(db string, config *config.Config, realtime *realtime.Realtime) *DB {
	return &DB{config, realtime, db}
}
func (d *DB) Insert(col string) *Insert {
	return initInsert(d.db, col, d.config)
}
func (d *DB) Get(col string) *Get {
	return initGet(d.db, col, types.All, d.config)
}
func (d *DB) GetOne(col string) *Get {
	return initGet(d.db, col, types.One, d.config)
}
func (d *DB) Count(col string) *Get {
	return initGet(d.db, col, types.Count, d.config)
}
func (d *DB) Distinct(col string) *Get {
	return initGet(d.db, col, types.Distinct, d.config)
}
func (d *DB) Update(col string) *Update {
	return initUpdate(d.db, col, types.All, d.config)
}
func (d *DB) UpdateOne(col string) *Update {
	return initUpdate(d.db, col, types.One, d.config)
}
func (d *DB) Upsert(col string) *Update {
	return initUpdate(d.db, col, types.Upsert, d.config)
}
func (d *DB) Delete(col string) *Delete {
	return initDelete(d.db, col, types.All, d.config)
}
func (d *DB) DeleteOne(col string) *Delete {
	return initDelete(d.db, col, types.One, d.config)
}
func (d *DB) Aggr(col string) *Aggr {
	return initAggr(d.db, col, types.All, d.config)
}
func (d *DB) AggrOne(col string) *Aggr {
	return initAggr(d.db, col, types.One, d.config)
}
func (d *DB) BeginBatch() *Batch {
	return initBatch(d.db, d.config)
}
func (d *DB) LiveQuery(col string) *realtime.LiveQuery {
	return d.realTime.LiveQuery(d.db, col)
}