MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / SetCharset

Method SetCharset

IceFireDB-SQLite/pkg/mysql/client/conn.go:223–234  ·  view source on GitHub ↗
(charset string)

Source from the content-addressed store, hash-verified

221}
222
223func (c *Conn) SetCharset(charset string) error {
224 if c.charset == charset {
225 return nil
226 }
227
228 if _, err := c.exec(fmt.Sprintf("SET NAMES %s", charset)); err != nil {
229 return errors.Trace(err)
230 } else {
231 c.charset = charset
232 return nil
233 }
234}
235
236func (c *Conn) FieldList(table string, wildcard string) ([]*Field, error) {
237 if err := c.writeCommandStrStr(COM_FIELD_LIST, table, wildcard); err != nil {

Callers

nothing calls this directly

Calls 1

execMethod · 0.95

Tested by

no test coverage detected