You are viewing documentation about an older version (1.35.0). View latest version

Files

Classes

SnowflakeFile(file_location[, mode, ...])

SnowflakeFile provides an interface to operate on files as Python IOBase-like objects in UDFs and stored procedures.

Methods

close()

See https://docs.python.org/3/library/io.html#io.IOBase.close (https://docs.python.org/3/library/io.html#io.IOBase.close)

fileno()

Getting a file descriptor number is not supported in Snowflake.

isatty()

Returns False, file streams in stored procedures and UDFs are never interactive in Snowflake.

open(file_location[, mode, is_owner_file, ...])

Used to create a SnowflakeFile which can only be used for read-based IO operations on the file.

open_new_result([mode])

Used to create a SnowflakeFile which can only be used for write-based IO operations.

read([size])

From https://docs.python.org/3/library/io.html#io.RawIOBase.read (https://docs.python.org/3/library/io.html#io.RawIOBase.read)

read1([size])

From https://docs.python.org/3/library/io.html#io.BufferedIOBase.read1 (https://docs.python.org/3/library/io.html#io.BufferedIOBase.read1)

readable()

From https://docs.python.org/3/library/io.html#io.IOBase.readable (https://docs.python.org/3/library/io.html#io.IOBase.readable)

readall()

From https://docs.python.org/3/library/io.html#io.RawIOBase.readall (https://docs.python.org/3/library/io.html#io.RawIOBase.readall)

readinto(b)

From https://docs.python.org/3/library/io.html#io.RawIOBase.readinto (https://docs.python.org/3/library/io.html#io.RawIOBase.readinto)

readinto1(b)

From https://docs.python.org/3/library/io.html#io.BufferedIOBase.readinto1 (https://docs.python.org/3/library/io.html#io.BufferedIOBase.readinto1)

readline([size])

From https://docs.python.org/3/library/io.html#io.IOBase.readline (https://docs.python.org/3/library/io.html#io.IOBase.readline)

readlines([hint])

From https://docs.python.org/3/library/io.html#io.IOBase.readlines (https://docs.python.org/3/library/io.html#io.IOBase.readlines)

seek(offset[, whence])

See https://docs.python.org/3/library/io.html#io.IOBase.seek (https://docs.python.org/3/library/io.html#io.IOBase.seek)

seekable()

See https://docs.python.org/3/library/io.html#io.IOBase.seekable (https://docs.python.org/3/library/io.html#io.IOBase.seekable)

tell()

See https://docs.python.org/3/library/io.html#io.IOBase.tell (https://docs.python.org/3/library/io.html#io.IOBase.tell)

write(b)

See https://docs.python.org/3/library/io.html#io.RawIOBase.write (https://docs.python.org/3/library/io.html#io.RawIOBase.write)

writable()

See https://docs.python.org/3/library/io.html#io.IOBase.writable (https://docs.python.org/3/library/io.html#io.IOBase.writable)

writelines(lines)

From https://docs.python.org/3/library/io.html#io.IOBase.writelines (https://docs.python.org/3/library/io.html#io.IOBase.writelines)

Attributes

None

Language: English